To some extent, yes. Every boy knew that when they were in school. On the other hand, some boys are natural, powerful scholars who are more driven by curiosity and competition than by pleasing teacher.
Co-education is a crazy idea. I am grateful that I was spared that for eight years, spared the social and sexual distractions which so dominated vacation time anyway. Most of our Masters were male, and each one had to coach a team on the side. The handful of lady teachers could never imagine what fantasies they were subject to regardless of their appearance. They did not coach: they worked in offices instead during sports time. I also hope the faculty wives were never aware of our terrible thoughts about them.
Yes, we had a couple of gay students and a couple of gay Masters, and everybody knew but nobody really cared. It was not a Big Topic in those days, just a subject of casual amusement. As far as I know, none of them acted on their desires on campus. However, I did know one prep school classmate who had a hot affair with a hot faculty wife. That did not end up well, for her or for her kids. He was the envy of all. Damn handsome, socially-precocious, rich, tall, blond Aryan quarterback. I still hate guys like that to this day. He went to Harvard, and made a ton of money after that and is still with wife #1. Big donor to the school, now.
School Has Become Too Hostile to Boys - And efforts to re-engineer the young-male imagination are doomed to fail