Yes, you could create balanced batches using WeightedRandomSampler or over/undersample specific classes with SubsetRandomSampler, while this wouldn’t be possible by just using random_split.
However, you could of course use a random_split in combination with the samplers.