Before I retired, I spent most of my working life sitting at a desk and peering into a computer screen. I assume that this would not be considered as good for playing golf? I did work out in a gym a couple of nights a week though and did a bit of swimming. When I was younger I also played squash.Does going to the gym and lifting weights make your a better golfer no!
Being fitter, more flexible and conditioned will.
What you do for a day job will have a bigger bearing on how you golf in my opinion.