Only if the i5 is of 2nd, 3rd or 4th Generation.
Also the AMD APU's are not recommended by me at all. They are just good for budgets less than 300 dollars. Anything more than that should have a discrete graphics card.
Also if you are buying the i5 you would need a graphics card to enjoy games.
Let's get this straight :
1. Are you building a new build?
2. Are you upgrading?
3. What is your budget for Either of the Above?