With those 2 as the main components ya, you could run every game on Medium, heck you could run 90% of all the games out there on Ultra settings at 1080p.
But... there is other parts to that right? because a CPU and a GPU can't conjure magic unless you got the rest of the components.