Your only regret is likely to be about how long you delayed having the surgery. Had both mine replaced 15+ years ago (separately) during off-seasons and it never hampered by officiating activities.
A key, of course, is following your doctor's instructions which will likely include a serious, and consistent exercise program. A helpful permanent exercise, if you have access to a pool, is running laps in water, both forward and backwards, as it provides a range of movement (most of us) don't have on dry land.
You'll be up and around in less than a month (depending on your exercise commitment) and once you get into a habit, why stop. It will definitely help your golf swing, which may or may not, improve your golf game. Last season's over, and the sooner you can get the surgery done before next season begins the better off you'll be.