Sorry to bring bad news, the poster above has been misinformed. You can take that hard drive and put it in another computer, it will not work correctly, will become extremely corrupt, and suffer massive issues.
Each hard drive has system files, these files and everything on the computer including the computers ability to recognize a hard drive through a sata port is controlled by a driver, yes native to windows 7, some are not (nvme).
All the drivers, chipset drivers, gpu drivers, sata controllers, engine managment, usb drivers, lan and wifi drivers and quite a few windows drivers will all fail catastrophically, the slight chance of downloading the drivers when booted through windows update, only to corrupt the system more with...