[quotemsg=21133774,0,2368469]it was windows 8 but they windows 10 came out and i got the upgrade it was a physical copy[/quotemsg]
OK, for that, you can transfer the license, and you don't have to buy a new license for your new PC.
Read and do this before you change any parts:
For the actual installed OS, there are 3 possible outcomes in moving the drive like that.
1. It boots up just fine
2. It fails completely
3. It boots up, but you discover issues for weeks/months after.
For a whole new system, a clean install is strongly recommended, often required.