All computers are pretty much all compatible with all hardware anymore. Obviously you have to pay attention to what brand CPU you are buying, and make sure the motherboard you want to buy has the right socket for the CPU, but after that everything else is pretty much the same.
It is smart to try to buy memory that has been verified by the motherboard's maker that the motherboard you want to buy will work with the memory you want to buy, and every motherboard maker keeps a list of that on the web page for each motherboard. video cards, hard drives, SSD's, CPU coolers, keyboards, mice, printers, etc... are all compatible with all motherboards.