You will need to purchase a license if:
If you don't have an existing license or are upgrading a custom build, you will likely need to buy a product key: does it cost to install windows 11