Hello
Yes you can, as long as your hardware can support Windows 11, upgrade from Windows 10 to 11 is still free, with one exception - if you obtained your Windows 10 license from a free upgrade from a Windows 7 or 8 license, then you will not be able to use it to activate Windows 11.
But otherwise, no problem.