When can't you get pregnant

B

What's the best time to have sex? The ovulation thing kind of confuses me and messes me up, can you get pregnant after your fertile window? Or is it best to have sex before if you don't want to get pregnant?