Pregnant?

If I'm trying to get pregnant should I have sex while I'm fertile or when I'm ovulating?