Abdominal pain after sex?

I had sex today with a condom in missionary position but he pulled out when he was going to cum and then he never came. then an hour later my boyfriend and I had sex with a different condom but it was more of a position expierment thing and he didn't cum. The 2nd time we did it sitting up and doggystyle and it hurt both times. It was only our third time having sex ever. But after the 2nd time today I had abdomal pain. Why do I have abdominal pain? Could it be linked to pregnancy? Google said it can't be linked to pregnancy but I just want to make sure.