Can I use an iTunes gift card to pay for something I bought yesterday and avoid a credit card charge?
The TL;DR is your gift card can't be used this way.

Your account is charged before the purchase is complete. If there is store credit available on your account, your credit card will not be charged. With no available credit on your account, your credit card will be charged.