Can you get pregnant from precum while on your period??

Me and my boyfriend always use a condom but two days ago we got carried away and had unprotected sex... I was on my period and he didn’t cum but Im still worried😬😬😬 should I take Plan B?