It depends. If the system came with Microsoft pre-installed it's most likely a COA or system builder license which means it is non-transferable. If it is a retail license then yes you could transfer the license.
You can run the command slmgr /dlv to see if it's COA or Retail