Is it wrong my personal trainer cupped my butt briefly during squats?

then was encouraging me to go faster and said “come on (my name) squat for me) and was watching them in the mirror

Is it wrong my personal trainer cupped my butt briefly during squats?
Post Opinion