Short answer? Yes. But here's some advice for improvement.
If you want, you can get the K (unlocked) series i5 7600 (i5 7600K). I have it in my build and it's mostly good because you can overclock it. It will be as good as an i7 in clock speed and cores for less price. What's the catch? Less cache (hehe) and you have to spend money on a liquid cooler.
Oh, and if you will overclock, get a better chipset (Z270 will be good, less than that is not as good for overclocking).
In addition, with the current components, a better wattage PSU will be better, unless you intentionally want to fry your computer.
Getting an SSD will be great as you will be able to boot faster. Remember: First priority is the operating system, then your favorite games...