Of course if the pain is constantly severe or anytime you move, then you might consider if you need to go to a doctor.
Usually though, it's likely something a lot of us our age have felt, and even my younger son's in their 30's feel this when they don't ride for a while.