Question timeeeeee????

Okay so random question can you get pregnant on your period because when I went to the doctors they asked me when my last period was and I told them and they said it didn’t match up with the pregnancy and my boyfriend and me had sex everyday including on my periods and he came in me then too? I know it’s random but can someone please answer? All nice comments please❤️