Can you get pregnant a week before your period?

I ovulated late, my cycles are all messed up and i had unprotected sex a week and a few days before my period is supposed to come, is there a chance i could have gotten pregnant?