if the old code is for a pro or ultimate version of windows, it will activate a pro installation of 10.
Just a warning, since you mentioned that you have a new Framework Laptop. Windows 10 is not officially supported by the 12th gen mainboard, and you may run into driver issues in you don’t install Windows 11. If your laptop is an 11th gen processor either OS will work.