You will need to clean install Windows after changing your motherboard, because the hardware change is too great for the current Windows installation to boot up on the new motherboard.
With regards to activation, Microsoft changed the rules in September 2023, after they made that change, it is no longer possible to activate Windows 10/11 on a new PC or motherboard with a licence based on a previous Windows 7 or 8 licence, so you would need to purchase a new Windows licence to activate Windows on the new motherboard.