Can you get pregnant from having sex 5 days before ouvlation?

Sperm life span. Sperm ejaculated into a woman's vagina can live in a woman's reproductive tract for up to five days or perhaps even longer. Fertilization is possible as long as the sperm remain alive. Sperm ejaculated outside the body may survive only minutes to a few hours.
Yes. Having intercourse 6 days before ovulation carries a risk of about 3 in 1000 of conception. That is low but not zero.