Hello Hoxxinh,
I'm Jin, a fellow Windows 10 user and an independent advisor.
Changing the motherboard and CPU are both major hardware change. Changing the motherboard will definitely change your hardware ID. As for activation, it will depend if your original license is a retail or OEM. If the Windows came pre-installed on your device then it's an OEM which is not transferable.
If it's a retail license, then you maybe able to use the same license for activation after the upgrade. You can also review this article on how to activate your device after a hardware change:
https://support.microsoft.com/help/20530/
If you are getting an error code during activation, you can search for the error code on the link below with it's corresponding fix:
https://support.microsoft.com/help/10738
Should you need more help with activation, it's best you contact Microsoft technical team for assistance at: https://support.microsoft.com/help/4051701
Kind regards.