You are correct regarding the transformation. The transformation will be applied on the fly on your minority class data.
You are also correct regarding the WeightedRandomSampler, if you are keeping the default replacement=True argument.