When I was a kid, there was some religious nut working with youth in my home town who tried to make teenagers sign a contract saying they wouldn't have sex before marriage
More probably as a motivator than actual legal stuff, but still ..
I think it's pretty darn manipulative. Of course, my parents told my older brother not to sign it.
My own experiences with school and morality are not particularly good either, although they don't particularly relate to sex. We had a few religious nut teachers of the older school (who were
teachers, not social workers and who are mostly retired or dead now) and they tended to make me a target of morality rather than a reciever
Some teachers should just keep their opinions to themselves.