Fertility Question

Yesterday was my most fertile day. But I didn’t have sex. Instead I had sex 3 days before that. While still fertile. Can I still come out pregnant ?

I did it about 3-4 days before ovulation. I’ve been told sperm can live up to 5 days of you are fertile.