Absolutely, playing video games on a computer is not only possible but incredibly common. There are countless titles designed specifically for PC, available through platforms like Steam and many other storefronts.
You can also use emulators to run games from older consoles, provided you own the originals. With the right hardware and a bit of setup, your computer can become a full-fledged gaming machine.