No, there were no video games in 1940. Video games came along only after the computer, which was invented later—so with no computers around, the games and the hardware needed to run them simply did not exist yet.
That said, if you are thinking of a specific early computer-style game you found online—perhaps one that used lightbulbs—that would be a much later invention than 1940.