Can someone help please?

My anxiety is overriding my logic so I just want to know/make sure that you cant get pregnant while you are on your period? Me and my boyfriend did anal and I'm always anxious some of his semen somehow found it's way down there. We did it on the 2nd last day of my period and I just want to make sure/calm my nerves :)