Only one day?

Can you still get pregnant if you only have sex on ovulation day and not the days before??