Can any motherboard work with any computer?
That doesn’t make sense. But no, the motherboard has a certain CPU socket (which means only one style of processor will fit onto it). It also will usually allow for only one type of memory (DDR, DDR2,