I'm 81. Had left hip replaced in 2018, and right hip in 2019. Just had a carcinoma cut out of my bladder and subsequent chemo. Back to walking a mile a day, doing squats and working out with tension bands. No hip pain.
You can do it! Find the most experienced hip surgeon with the best reputation, and a hospital with a good reputation for ortho care. Takes a few weeks for recovery. The stairs probably will be out during recovery. You will be using a walker. A rehab facility may be an alternative while you are healing.
Find a great physical therapist when you are ready and work out diligently. Keep doing the recommended exercises daily and you should stay pain-free and limber.