not really, the only classes that can do that is soldier, demo, spy, and maybe engineer. Heavy if it's a map that allows it or they're on a good team.
The classes that can genuinely do that are: Scout, Soldier, Pyro, Demo, Heavy, Sniper, and Spy. Any other classes can be hard countered in some way by average/any above average player. Like Engies really can't because it's on their team to carry them, otherwise any semi-decent soldier/demo/spy/uber, even a good Sniper could kill the sentry and meds can't because well, they need the heal target to be doing that for them. Good heavies know how to position themselves to make them a hassle to deal with, god forbid they have a medic as well.