I tried using an apple gift card obtained from a trade in to do this and was unsuccessful. The checkout process for apple are did not offer a payment method to enter a gift card. I think this is on purpose to avoid using the card for applecare and instead to point people to more expensive devices to cover part of the price.