If you see my history ,you will see I did both knees before the hips. Knees 8 months apart and hips 3 months and the hips are definitely a bit easier than knees. Not to worry though At 5 months apart you should be fine. With knee I was much more committed to rehab them with PT, whereas hips pretty much take care of themselves. There are different schools of thought on amount of PT necessary for good knee recovery ,so you should look at both approaches. If you do active Pt make sure you don’t get an out of touch tech, ie if he says no pain no gain, dump him. This is definitely wrong, and a good tech will pay very close attention to The amount of discomfort a certain exercise should cause.