That is, until 2025, when Microsoft will stop supporting Windows 10. And if you don't want to install the new OS, you may not have to.
You can use this Microsoft tool to check if your PC meets all of the requirements. By the way, not all PCs will be able to get the free upgrade to Windows 11 now that it's released.