Yes the Intel® Core™ i5-2400 will work just fine for gaming. Since very few games can take advantage of more than 4 threads. So there is little reason to buy processors with more cores or threads because they really don't buy off. About the only thing that would make a difference is something like the Intel Core i5-2500K which is unlocked and allows easy overclocking of the processor.
Intel Enthusiast Team