The media from MS is the same. When you enter the product key, the installer will install the proper version.
If you install Win 10 Pro without a product key and then try to add a Home product key afterward, it will fail. In that situation, you'll need to re-install Windows to go back to the "lesser" version.