Curious 🤔

If I had sex 3 to 4 days before my ovulation day can I still become pregnant ?

My Best friend said I still can not end up pregnant unless it's exactly on my ovalution day 🤔 I'm confused is that true ?