I had a pretty severe injury to my neck (and head) many years back. Lucky to be alive and luckier to not be paralyzed. They took a plug out of my hip bone and stuck it and a plate in my neck to fuse a few vertebrates together. A couple surgeries and over a year to recover. This left me with some reoccurring pain on occasion (really just irritates enough to make you uncomfortable and mad) and some limited range of motion.
I mostly shoot prone, preferring maybe a little higher than most. Up til about last October I still worked out like a mad man. At 5'7" and right at 220 lbs, I could bench 350 for several reps, 225 for over 25 reps, and military press my own weight 5 times. Now I have a big issue with my elbow (looking at a possible surgery soon) and have dropped almost 20 pounds and working more on cardio and not near as much weight training. I have been a sniper in the military for many years, most while having the plate in my neck, and now run a sniper school.
I don't say any of this to boast, there is nothing special about me. I say this to let you know that you can still have a life after your surgery. The best advice I can give you is listen to the doctor and therapists, and don't push it!