Still a chance of pregnancy?

I had sex without a condom last night but he managed to pull out like 2 seconds before but I’m still scared some might have gotten in. Yeah ik that it was stupid to not use protection but we didn’t have any in hand. But anyway I literally just got my period and I’m wondering does that mean I’m definitely not pregnant or does it take a while after conception to stop getting your period?