Yes, first deactivate license and use it in another machine. Each desktop key will work in two machines.
BI, Aspire Systems (India) Pvt Ltd
If you no longer need Tableau Desktop on a computer or you want to move it to another computer, deactivate the license key before you uninstall Tableau.
A detailed documentation on how to deactivate Tableau Desktop can be found in the article below.
Hope this help