Any purchase that you will be doing either in iTunes / App Store / In App purchase will first be using the credit balance you have with the gift card you added. 

When that balance reach $0 then Apple system will be using the credit card you have associated with your account or decline the purchase if you have not linked a credit card.