I think that everyone's problems after hip replacement will be somewhat different to those of others. When I collected an elderly friend from hospital after she'd had a hip replaced, she insisted on doing a full 'big shop' in Tesco on the way home. I offered to do it for her and I offered to push her round the store in a wheeelchair but she insisted on walking on her own for over half an hour, while stretching and bending to reach different shelves. (I kept on volunteering to help but she was having none of it!). So I doubt that getting up in the night to pee worried her too much!
However I had a prostate op last month, after not being able to pee for a year. (I'd been living with a catheter fitted). Since I'd not used the relevant muscles for so long, I had very little control 'down below'. For the first few days after I came out of hospital I carried a plastic bucket with me wherever I went in the house and it stood beside my bed all night. I had my uinderpants permanently stuffed with wads of kitchen towel too!