should I have surgery?

Hello first of all I am using an English translation program so I apologize for the mistakes in my writing get well soon everyone I have been diagnosed with advanced hip arthritis doctors recommend prosthesis. The interesting thing is that I have no pain yes I can walk long distances but with my cane I have slight pain in my hip when standing or sitting for a long time but it goes away with the new position are there any friends who have this condition I am 58 years old should I have surgery?