Is it ok for a female teacher to enter (to supervise) boys lockers/showers?

Ours use to. To be fair there where no male teacher and we were 11-12. I thought it was ok but some people think it was weird. Yes sometimes we were nude.
Is it ok for a female teacher to enter (to supervise) boys lockers/showers?
Post Opinion