As with the previous post, that is what happens; I know, I have done it.
I often buy the $25 GC and use it was credit towards the bill, pay with my registered debit card on the remaining balance and earn miles on what I paid ($50 bill - $25 GC = $25 paid w/ debit card or 250 AA miles.)
Peace!