In My experience
You will be able to run the windows But
What I can understand from your description says yes because you are just changing the SSD, And The motherboard which creates activation problems.
Restart PC and press F2/F12/Del keys to enter BIOS.
Go to the boot option, change the boot order, setting OS to boot from the new SSD.
Save the changes, exit BIOS, and restart the PC. Wait patiently to let the computer boot up.
Thank you
--
--If the reply is helpful, please Upvote and Accept as answer--