The right kind of toys, yes... and the right kind of video games.
There are toys, and games, that make you dumber. Especially games designed to emphasize the addiction loop and monetize inconvenience. Case in point: Angry Birds.
It used to be a very fun, silly, physics-based game. Now, it is infested with pay-to-unlock consumables that in some cases are required to get all three stars on a level (because you can't knock everything down without an explosion and the default roster of birds for the level doesn't give you that).
The simpler a physical toy is (a ball, simple blocks) the more likely it is to contribute to a child's development. The insidious "I-need-another-outfit-Barbie" on the other hand only trains frivolous spending. Even Lego sets vary in the kind of play they foster.
Playing with toys and games can have cognitive benefits, but, digital or otherwise, there's a quality spectrum parents have to be aware of.