Can I use my Product Key from Laptop?

Hey guys I have a quick question about building my first computer. I already have a laptop I bought with Windows on it. I was wondering if I could use the product key from the laptop and download the .iso file and use that as the operating system...Thanks for any replies.

yes you can just make sure you put the same version of windows on your newer computer