Can you get pregnant in the last couple days of your period?

Jaycee
So me and my boyfriend decided to have sex a couple days before my period ended. I found out a week later that he came inside me with out telling. He thought it'd be harmless considering I was on my monthly. I'm kinda scared because I'm 16 and not very educated on this stuff. Can someone please tell me if it's possible or not?