If your old computer use OEM system, new computer cannot use its product to activate Windows 10.
If your old computer use retail Windows 10 license, you could uninstall product key on it and install product key on the new one, then activate the Windows 10 on your new computer.
-------------------------------------------------------------------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.