Hello
If you have Windows 10 now and is on legitmate license, then yes, you can still get Win11 upgrade for free as long as your computer's hardware supports it.
Run the PC Health Check app top make sure your computer meets the requirements: https://support.microsoft.com/en-us/windows/how-to-use-the-pc-health-check-app-9c8abd9b-03ba-4e67-81ef-36f37caa7844
You can get it here: https://www.microsoft.com/software-download/windows11. You can download and run the Installation Assistant tool to upgrade.