I assume Mac's are the same as the PC in that the motherboard/logic board has to be told to support the CPU. It is done with the BIOS on a PC, not sure how on a Mac. I have never tried to swap a CPU on a Mac of any kind before so I have no experience there.
It may work, it may not. It's a bit or work to get in there and try but if you like that kind of thing it can be fun.