If the teacher was trying to do what I think was the purpose, it sounds like he hit the target squarely. How better to illustrate the consequences of indescriminate sex to a bunch of horny boys? Quite the attention-getter, no?
True, it could be more effective than just handing out condoms.