You can absolutely get a computer built for gaming, but it's worth understanding a key distinction: video games and PC games are written differently because they're built to run on different machines.
A gaming PC won't automatically play console discs, and a console won't run PC titles. So if your goal is to play video games specifically, you'll want to match the platform to the games you care about, whether that's a console, a gaming desktop, or a laptop with the right specs.