Mini-Pill help!

I’m meant to start taking the Mini-pill today, but a week ago I had unprotected sex a couple of times, and two days after got my period. Am I still okay to take the pill if there’s a chance of pregnancy?