Stupid question

Allyson

So this is probably going to sound super strange but I’m new to this and still learning about cycles and ovulation. Is it possible if I had sex two days before my period. That I would still get that period and get end up pregnant? Like I said it’s definitely a stupid question but just wanted to ask people who would be able to help!! Thank you for any help!