If you physically disconnect the Win 10 drive, and install Win 7 on a different drive, yes.
You will, of course, need a valid Win 7 license for this. And this is assuming that system has drivers for Win 7 and can actually install Win 7.
Recent systems cannot natively install Win 7 without a LOT of work.