please help!!!

So I had sex a couple days before my period was supposed to start without a condom and pull out I take my pill around the same time every day. I got spotting at first then a really heavy flow for a couple of days. Could I still get pregnant if I got the period?