Sex before period

Are your chances of getting pregnant lower if you have sex right before your period?
What's the best time during your cycle to have sex and have low risk of pregnancy?
(Ps. We use condoms but just wondering)