If you purchased Windows 11 (or 10) separately from a store, you can transfer it to a new PC.
On : Settings > Accounts > Your info → Sign in with Microsoft account (if local account) transfer windows 11 to new computer updated
: Choose which folders (Documents, Pictures, etc.), apps, settings, and credentials to back up to your OneDrive . If you purchased Windows 11 (or 10) separately