With that caveat out the way, if your PC qualifies, this is how you get Windows 11 for free. Windows 11 can be tricked to run on older PCs, but that seems a pointless endeavour because Microsoft is refusing to guarantee access to feature and security updates. But if you have a modern PC and choose to run an older operating system, then you can first get a free Windows 10 upgrade and use that to then jump to Windows 11.
If you run Windows 7 / 8 it is highly unlikely your computer meets all these requirements. Graphics card: DirectX 12 compatible with WDDM 2.0 driver.
Security: Enable TPM 2.0, UEFI firmware and Secure Boot capable on your PC.CPU: 1 GHz or faster with two or more cores.