Video games can give your brain a workout, but it really depends on the genre. Mindless, purely action-heavy titles don't do much for problem-solving, whereas strategy and puzzle games, think Legend of Zelda and similar titles, engage planning, memory, and spatial reasoning.
So the type of game matters a lot. Choose ones that challenge you to think, and you're far more likely to see a genuine mental benefit than from hours of button-mashing.