Chance of pregnancy?

Has sex with my bf a week before my period. We used a condom but not sure if there was a slip up.

Felt all the usual pms symptoms like sore boobs and got my period on time (next week), but was wondering if I’m safe from pregnancy assuming sperm can live up to 5-7 days and I got my period about 7 days after sex?