No, it is not important. It is, however, a lot of fun.
Those two things are not in conflict. Games are not a requirement for a good childhood, and nobody is missing out on anything essential by not playing them.
What matters is the balance around them: sleep, school, friends, and time spent moving. A game is a fine way to spend an hour and a poor way to spend all of them.