chance from windows to mac

Hello, is it possible to switch from the Windows version to the Mac version for free ? I need a license key in the Mac version but I can’t find one to e-enter on Windows?

For example, I have a 2016 Macbook Pro. It has a touch fingerprint sensor I can use to do things like log on, and a touch bar that applications can use to create custom function keys.