You can use your Windows 7 disk to install Windows on a new computer but only if you've got a valid product key to go it with.
Further, it's probably unwise to load Windows 7 onto any machiene now that support for that operating system has ended. (Let me be clear on this: I'm using a Windows 7 computer to type this post, so I'm obviously not expecting the sky to fall in immediately simply because Microsoft is no longer issuing security updates for Windows 7. However, as the ransomware attack on NHS computers running Windows XP proved, sticking with an unsupported operating system can become risky in the long run).
So I'd suggest that it's time to move onto Windows 10 (as I'll probably be doing in the near future). You can buy a reconditioned Windows 10 computer (from a reputable supplier that I've got total faith in) for not much more than you'd pay to get your existing machine repaired:
https://accomputerwarehouse.com/product-category/refurbished-pcs/