Can You Get Pregnant If..?

Can you still get pregnant if you have sex when you are not fertile or ovulating?