I had a total hip replacement 18 months ago – septic arthritis not a accident. I had 4 months with no hip joint at all but was back on the bike 8 weeks after operation. Make sure you exercise your lower leg as much as you can to stop muscle wastage elsewhere. My best exercise was walking in the swimming pool and can be done with minimal weight bearing and as soon as wound is clear. Also Pilates for core strength around your hip.
Still hurts and needs more mobility but got used to it.
Good luck and keep a diary – it will remind you how far you’ve come when you get down…