Sex before period

I had sex three days before my period. Is that dangerous at all? I used a condom and he pulled out. Just want to be careful