I was told seven years ago to have a cholecystectomy, gallbladder removal, due to symptomatic gallstones...not a surgical emergency situation though. That's all Kaiser would do for me, surgery. I was aware of a couple of alternative treatments but they said no. This was years before the MS. I was overweight at the time, restricted fat in my diet, lost weight as a result and still have my gallbladder - and all original parts for that matter.
My favorite neurologist, specialist in MS, said if I needed surgery, it is the anesthesia that would be the risk - she said it can worsen MS. I do not know if she meant worsening the disease or just the symptoms. She even recommended the shortest acting anesthetic possible when getting dental work.
Usually joint replacement surgery in a younger person is put off as long as possible - as I recall this was because the younger the person is the greater the likelihood it will have to be repeated at some point in their life.