You need to activate the game on Gog.com with your account. Log in there and activate World of Warcraft Classic by putting in the code.
A World of Warcraft Classic key for the Gog.com-Client does not expire and after activation World of Warcraft Classic can be downloaded and played forever.