Elevated blood sugar levels can interfere with recovery and wound healing after hip replacement surgery. Therefore, the blood sugar levels must be brought under control before the surgery.