It should be OK.
It's likely that you'll have to reactivate Windows, though. The address of the ethernet controller must change, and that alone may be enough to trigger activation.
You may have to do it by phone, if you've previously activated that copy of Windows.
That's no problem, regardless of your license type. Repair by replacing with an identical motherboard is acceptable, even under the most restrictive OEM licenses.