Need question answered!

Barbara
Hello, I just recently came off my period like two days ago and my boyfriend came inside me. In health class I learned that once your period ends you are no longer ovulating, therefore unable to get pregnant. 
Please any confirmations on this or advice would be greatly appreciated!