vagina sore after sex

Hi gals, my partner and i had sex last first for the first time in like 3 months of not having sex. 
It was good but after, my vagina was sore. Why is that? Is it because we hadnt had sex in so long? 
I want sex again but i don't want a sore vagina