More important IMO is the fact that Linux re-detects hardware on every boot! Try moving a Windows hard drive to completely new hardware and getting it to boot. Not a chance...
If the partitioning is fine (GPT with EFI System Partition), it should boot up even if you move the disk to a completely new machine. You will need to re-activate Windows though after booting.
You may have had the ESP on a different drive than the one you moved to the new machine, perhaps?
Now that i think about it, i think it was an activation issue. I had a dodgey made legal copy of windows 10 when they offered the free upgrade to even those with illegal copies of windows, but when i moved it, i needed to activate and didn't know the key.
But two replies offering different bits of advice to my comment shows that at least in part its true that this is not straightforward
I did just that just yesterday/today. Built a new PC from scratch, added the SSD with Windows from the old PC, booted up, and it worked just fine. I didn't even need to reinstall the graphics driver.
It must have stopped with Win11. Tried to upgrade one of my family members Laptop. Took the ssd from the old one, put it in the new Laptop and only got to the Windows rescue Window. With Linux. I can setup an ssd with my laptop and when setup, plug it into my headless server and everything works fine.
Yup. though for GPU drivers you'll need to cleanly reinstall them if you downloaded them separately from windows update (which is a requirement for most gaming GPU users)
At least on linux its [insert distro command here] and it'll have your new drivers up and running for you without bloatware