Period + Pregnant??

I got my period last month before having sex on 5/14. I had had sex with person before my period as well, as we had been dating. I took a pregnancy test today 6/13, and it says I’m pregnant. Is it possible I was pregnant and still got my period last month?

Or is it more likely that it happened in between my last period and now?

My period is late by a day and I have 1 positive pregnancy test.