Opinions on this vary. One view holds that they can: staring at a screen for long stretches trains your eyes to a fixed distance, and some players report worsening vision after heavy gaming. Regular eye exams and controlled gaming habits are a sensible precaution.
The other view is that the effect is temporary—your eyes readjust to normal distance vision once you step away from the screen. Because everyone's experience differs, there is no single definitive answer.