When you have knee or hip replacement surgery, your doctor will suggest you do physical rehab afterward. Don't brush this off! A regular exercise program is a key part of recovery from your operation. When you build up strength in the muscles around your new joint, it will help you get back to your normal activities.