I need help

Last night I had unprotected sex with my boyfriend. I had just finished my period and we don't think he finished inside of me but he did finish on me and I hadn't finished at the same time either. But I woke up with really bad stomach pain. That I have never experienced before. So is there a chance I could be pregnant?