Indirectly by ensuring you meet your dietary needs. e.g. working all day, barely ate and can’t be bothered inhaling a whole chicken before bed so you smash 2-3 scoops.
Not optimal but you end up making a potential bad day diet wise, which would’ve set you back a day, a passable day.
The Whey itself isn’t magic it’s just supplements protein intake.