Depending on the source of your pain, other treatments may be recommended before a hip replacement procedure. Your doctor may recommend certain exercises and medication first, or the use of a walking aid.