Last December when I went in for shoulder surgery I was a little nervous but I was worried for nothing. The surgery didn't affect my MS in any way. I even lost a lot of sleep those many weeks after surgery and everything was fine.
Sorry you have to have surgery. Best of luck.