They can, especially when gaming eats into time you needed for other things.
For example, if I stay up playing instead of studying for a test the next day, I'm going to do worse on it—so in that sense, yes, games can pull focus away from priorities. The lesson is to keep gaming in balance with your responsibilities.