How do you bounce back?

My SO & I have sex twice a week. Last week we didn’t have sex at all and today we just tried today for this first time in awhile and it hurt! Was it because we hadn’t done it like a whole week?