You can try, but legally it is tied to the original motherboard. If you replace the motherboard then you have made a new computer, so you need a new license.
Also, depending on how the OEM implemented the backup/reinstall procedure - you may be blocked from installing that copy of window on a new board.