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 but leave some headroom so the SSD won't run slower and by extension, you will decrease the advantage you are getting by purchasing an SSD. All of the other junk on the HDD.
EVGA's GTX 1050Ti SC has 4 Gigabytes of GDDR5 RAM, which (I think) is better than the MSI 1050Ti. In addition, it has a better cooling system. If you wanna go crazy, the EVGA GTX 1050Ti SSC has 4 Gigabytes of GDDR5 RAM, a better clock speed than the SC and a much better cooling system.