Pregnant on period

Can you be pregnant even if you have your period? I had unprotected sex a couple times in the week before I got my period