Pain while having sex

So I’m 30 weeks and me and my husband just had sex and it hurt sooooo bad it felt like burning and stinging every time he get in. We had sex abojt a week ago and it did not feel like this. Does this have to do with my pregnancy or what? There was enough wetness so that’s not the problem :/ now after I’m sitting here and it still hurts a little...