It... hurt?

Normally when me and my boyfriend have sex it’s great. But yesterday, it actually hurt. I was thinking maybe because I hadn’t seen him in a while and maybe my body had to get re-used to him. or maybe because I wasn’t very wet (which usually isn’t an issue) and when he first put it in, it almost felt like I tore something (yikes). either way, it was painful so we didnt go for much longer.

The second time we tried that day, I was really wet so there was no problem there but the pain was even worse. Could having sex when I was not very wet down there be the reason for the pain I experienced?