What is the answer!!!

So my junior year of high school I was in a sex Ed class where my male teacher told us that getting cum by your vagina will NOT get you pregnant that it was a myth and that you could only get pregnant if it was inside of you. Well fast forward years later I’ve had many different gynecologists give me different answers 🙄