Yep - but you should not boot from the Windows 10 DVD and install it, because that can overwrite Windows 7 and your installed programs. Since you want to keep your programs and files, start Windows 7 normally, insert the Windows 10 installation disc, and run setup.exe from the disc.
During setup, choose Upgrade and make sure it offers “Keep personal files and apps.” Do not proceed if that option is unavailable. Windows 7 Professional can be upgraded to Windows 10 Pro, so the edition is compatible. Your existing programs and personal files should remain in place after the upgrade.
Before doing this, take a full backup or disk image of the Windows 7 installation. Some older programs, drivers, or hardware that worked under Windows 7 may not work correctly under Windows 10, particularly the scanner. Also make sure you have the Windows 10 product key if your discs require one. If the computer originally came with Windows 10 Pro, it may have a digital license that activates Windows 10 automatically on that same hardware.
One other consideration - Windows 10 reached end of support on October 14, 2025. In September 2026, a fresh Windows 10 installation is no longer receiving normal free security updates, although Microsoft's Extended Security Updates options may apply. If the computer supports Windows 11, I would check that before committing to Windows 10.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin