ovulating

if sperm lives in you for up to 5 days can you have sex 4 days away from your ovulation and expect to get pregnant? or do you have to do it on your ovulation date?