It can be, provided the games suit the age group.
The content rating is the thing to watch. An eight-year-old shouldn't be playing Call of Duty, but puzzle and simulation titles — Bejeweled, Gran Turismo and the like — are perfectly reasonable and can be genuinely good for pattern recognition and patience.
Beyond the rating, two habits help: play together at the start so you know what's involved, and keep sessions to a sensible length so gaming doesn't displace sleep, homework or time outdoors.