Can you only get pregnant when you’re ovulating?

Also how do you know you’re ovulating???