Yes, some video games on the market are genuinely educational.
Beyond entertainment, there's a whole category of titles designed to teach everything from math and reading to problem-solving and history, so games can absolutely have a learning purpose.