Pain while sex

I just had sex with my husband doggy style and while we were doing it I felt some pain on my stomach like a sharp pain and when my husband was finishing he said he felt like air inside and I feel crampy. Is this normal? I’m currently 25 weeks