They can, but only in combination with a sedentary lifestyle. Hours of sitting still while eating junk food will lead to weight gain, and the game is incidental to that.
The same is true of reading, working a desk job or watching television. Obesity tracks total inactivity and diet far more closely than it tracks any single screen.