Microsoft has a nagware that would keep asking you to upgrade to Windows 10 if you are using Windows 7. If you are using an older PC, I would not suggest doing that. Instead, try this hack to ensure that you do not get any notifications anymore.
Installing Windows 11 is not enough, you should keep a bootable USB handy since Windows 11 is still full of bugs. To create a bootable USB, you would need a Windows 11 ISO file. Here's how you can download it.
How often have it happened that you were locked out of your own Windows PC? Not anymore. Here is a surefire way to ensure that you never get locked out of your Windows 11 PC again.