In this day and age, just about anything will go together.
There are just a few things you have to look out for like choosing the right motherboard for your processor (e.g. Intel chips only go in motherboards that accept them, obviously), choosing the right power supply (e.g. a 350W PSU won't effectively power the more gamer oriented graphics cards), and what RAM timings are supported by the motherboard you choose.
Instead of just choosing at random, read around about what's preferable these days, figure out what your budget is, and then build around that. If you just pick at random you could be looking forever and then end up with a rig you're not happy with.