Am I pregnant?

My boyfriend put it in a few times with no protection the last day of me ovulating. It wasn’t for long but I am having spotting and the more I research the more I think I am pregnant. I am on the pill and have been taking it consistently. My period is still a week away but has been irregular recently. I am getting a pregnancy test in a few days. Can anyone help?