Many people will eat whatever snacks are available against their better judgment, and then regret it later. Having unhealthy snacks there and in people’s faces is a kind of psychological manipulation that takes some people nontrivial willpower to overcome.
If someone really wants candy bars, they can bring them from home.
Even if it removed the junk in favor of health food it's still the same amount of choice, now it's just the people who want junk that have to source it elsewhere instead of the people who want healthier options.
So yeah, so long as there's more options, rather than just completely changing everything to be "healthy", I think it's an improvement. Otherwise, someone gets the shaft.