Can you get pregnant while on your period?

I stopped taking the pill awhile ago and just recently hooked up with someone while on my period. He came inside of me and it totally freaked me out afterwards, I e heard you can't get pregnant while on your period but I need more proof and advice on if I should take any kind of action since I'm not trying to get pregnant at the moment. Help please!