Yes, astronauts do sometimes play video games while in space. Life aboard the International Space Station includes periods of downtime, and crew members have a variety of ways to relax during their off-duty hours.
Besides games, astronauts read, watch movies, listen to music, and stay in touch with family. Recreation is an important part of maintaining morale and mental well-being during long missions.