There was a time when you didn't actually have to own the base game to redeem gift DLC.
I am the proud owner of "The Witcher 3: Wild Hunt - Free DLC Program" without actually owning the base game.
Galaxy gives the following error message in my account library.
Base game missing
You don't have the base product necessary to play the DLC. You can buy it below or redeem it if you already have the code.
I do have "The Witcher 3: Wild Hunt - Game of the Year Edition" - the DLC was added in my confusion about whether I needed it.
GOG is even more confused about my GOTY ownership It exists in my library, but the store doesn't think that I have it.
If I try to purchase it, I get fun error messages like
Please note that The Witcher 3: Wild Hunt - Game of the Year Edition is included in The Witcher 3: Wild Hunt - Game of the Year Edition but you already own this item, and will not receive another copy when you buy this pack.