Does the gift code I purchase ever expire?

No.

The gift code does not expire. The giftee can redeem the gift code whenever they wish. Once redeemed, the gift code will last for the duration purchased.