yes the i5 cpu is fine for gaming, but i would get a better one first due to its cost, gpu are far cheaper and so upgraded sooner while cpu stays the same throughout your years in that system and leads to a point few years down where your cpu bottlenecks due to a wanted gpu upgrade, so i'd rather get the i7 to save cost long term/future proof and keep upgrading gpu when need comes, not worrying about the costly cpu
but yes, bottom line, no future upgrades considered, rather get a better gpu if gaming focussed