There's two separate issues here.
One is the legality, and it is not legal to install an OEM licensed copy of the software other than onto the PC where the OEM licence key & COA was originally located. It is not transferable from one PC to another.
As I understand it, besides getting an OEM licence with a new PC, you can buy a new OEM licence to install on a PC that you have built yourself, although this has always been a bit of a grey area. However, it must still be a new OEM licence - you can't buy a "2nd-hand" OEM licence.
The second is the purely technical - will it work? You're very much on your own there.
SD