This depends on whether your original Windows 8 Pro licenses were Retail or OEM (pre-installed/system builder). If you originally purchased standalone retail boxed or digital Windows 8 Pro licenses and later used them to upgrade to Windows 10 Pro, those retail rights carry over. Retail licenses can be transferred to new hardware, though you can only use a retail key on one active computer at a time. If your Windows 8 Pro licenses came pre-installed on a pre-built desktop or laptop (OEM), they are locked to that original motherboard and cannot be legally transferred to a new custom-built PC.
Note that free upgrades to Windows 10 converted the underlying entitlement, meaning you can often attempt to use your original Windows 8/10 product key or linked Microsoft account, provided the base license type was retail.
If your original Windows 8/10 Pro licenses are retail keys, you should be able to use the following process:
Step 1: Deactivate the license on the old PC
If your old Windows 10 Pro machines are still functioning, you can clear the product key so Microsoft's activation servers recognize it is freed up. Open Command Prompt as an administrator on the old computer. Run the command slmgr.vbs /upk to uninstall the product key. Then run slmgr.vbs /cpky to clear the product key from the registry.
Step 2: Install Windows 11 Pro on the new PC
Use the Microsoft Download Windows 11 page to create a bootable USB installation media tool. Boot your new PC from the USB drive and install Windows 11 Pro. Ensure you select the Pro edition, as Pro keys will not activate Windows 11 Home. During setup, when prompted for a product key, click "I don't have a product key."
Step 3: Activate Windows 11 Pro on the new PC
If using a Retail product key, once you reach the Windows 11 desktop, go to Settings > System > Activation. Click Change product key and enter your original 25-character Windows 8 Pro or Windows 10 Pro retail product key.
When using a digital license / Microsoft Account, sign in to your new PC using the same Microsoft Account that was linked to your digital Windows 10 Pro license. Go to Settings > System > Activation. If it does not auto-activate, click Troubleshoot and select "I changed hardware on this device recently" to map the digital entitlement over from your old machine. If the activation fails because the key is flagged as OEM or reaches a limit, you would need to contact Microsoft Support.
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