Stupid question- but need advice please!

I am on the pill. Is it possible to have sex with no protection a week before my period, get my period, and still be pregnant