Hello
The answer is no.
This is due to a recent policy change done by Microsoft. For the several years since 2016, there was a loophole where users could upgrade to Windows 10 and then 11 by using an old Windows 7 or 8 keys. The loophole has been now blocked by Microsoft. This is why you cannot install Windows 11 now with your Windows 7/8 license. This is the news about this change: https://devicepartner.microsoft.com/en-us/communications/comm-windows-ends-installation-path-for-free-windows-7-8-upgrade