Hi Lyndale,
I had a hip replacement, and I was able to dance by six weeks and by two months I was able to do whatever I wanted.
It will take some time for the muscles affected by the surgery to regain their strength, so do your physical therapy exercises, and walk.
I’ve since had a knee replacement as well in early February. Yesterday I hiked a 7-8 mile strenuous mountain trail, with no issues, and I won’t be looking back.
The main thing is to keep walking. Your new gait will likely be a little different-feeling, but once the psychological barriers of being a compromised walker/athlete are surmounted by confidence-boosting walking or other workouts and you get the muscles back in shape, there’s very little you can’t do, within reason.
So, I’d agree with your doctor, as long as you hold up your end of the deal and are an active participant in your own recovery.
All the best for a speedy recovery,
Paul