Greetings!
This is Tin, I'm here to assist you. When you are planning to use your old Windows license from old device to a new one, it won't automatically carry over the activation even if you sign in the same MS Account, it will still depends on the license that you have. May I know where did you get your license? Is it preinstalled on your previous computer? Or you bought it separately with your device?
If it was preinstalled, you won't be able to transfer it as it is only embedded to your old device and it can't be used to different computer.
If you have purchased the license separately to your computer, you can sign in your MS Account then go to Activation section on Windows, then run the Troubleshooter and let them know that you've recently changed your hardware.
Thanks,
Tin