probably, though occasionally there are UEFI/Legacy vBIOS issues. No way to know without trying though and that's probably RARE but I don't see modern GPU's on systems this old very often.
*Do note you'll have a severe CPU bottleneck in most or all games.
That does NOT mean a game won't work well, though make sure you meet the MINIMUM specs for a game. It means your FPS will be lower than what it could be with the same GPU and better CPU.
The FX-4300 is about 50% faster and it can be 40% or so slower in some games compared to an i5-6600K and same GPU.
**You will STILL have a useful gaming PC, it just means you'll have to choose games carefully. Some new ones can be fine, and some like HALF LIKE 2 are older, but still fun and probably work great on that combo.