Can you get pregnant before your period?

So I have slightly irregular periods, I don't think I ovulate at set times either because I took an ovulation test once and I was literally ovulating like 3 days before my period started. Question is, say I was ovulating about 3-5 days before my period, and I had unprotected sex, would I still have that period the couple of days later? I hope that makes sense lol.