Could I be pregnant?

I’m on the pill, and i had unprotected sex a few weeks ago, my period still came.. Can I be pregnant and still have a period? Am I just overthinking? help :/