anal and period?

is there a possibility of getting pregnant while having anal on your period? he rubbed against my vagina while i had a tampon in than we did anal. could i get pregnant?