Windows keys can be confusing. One of the biggest questions is whether you can use your current product key and move it to another computer.
For example, many product keys on modern computers are stored on the motherboard, meaning if the motherboard changes, that key might no longer be usable. However, if you know if your product key is retail, OEM, or volume, you might be able to move your product key to another computer.
You need to know if you have a Retail, OEM, or Volume license.
Retail A retail license means you purchased Windows either online or at a store, and you should have a physical copy. Retail Windows can be transferred and activated to another computer but only assigned to one computer at any time.
OEM OEM or Original Equipment Manufacturer means your copy of Windows came installed on your computer and is licensed only to that computer for its lifespan. Nowadays, most of these licenses are embedded in the BIOS or UEFI firmware. OEM licenses are standard with brand-name computers, including Dell, Hewlett, Packard, Compaq, etc. One exception would be OEM-SLP. This is preinstalled; no activation required key. You can not install Windows using this key, but you can recover from a preinstalled partition on your computer. Check with your manufacturer on how to do that.
Volume Volume licenses are often purchased in bulk by large companies, educational institutes, or the government. There's a good chance that these keys can be installed on other computers, but bulk sales usually have a limit, and when that limit is exceeded, the product key is no longer valid on another computer.