Microsoft warns at https://www.microsoft.com/en-us/howtotell/Shop.aspx
Beware of Product Keys Sold Separately
With the exception of Product Key Cards (PKC’s) distributed with COA’s, Microsoft does not distribute products keys as standalone products. If you see a listing on an auction site, online classified ad, or other online page advertising product keys for sale, it’s a good indication that the keys are likely stolen or counterfeit.
You may buy Windows license at Microsoft site. I do not recommend do use Microsoft Store.