In app purchases use up money in iTunes account?

I'm curious if buying something inside a game uses up your money in your iTunes account. For example, let's say I bought a $100 iTunes gift card, if I buy something in an app for let's say 100,000 extra coins or some in app purchase like that for $75, will it use up the $100 and leave me with $25 leftover? Basically are iTunes gift cards used up when you purchase something inside an app like they are used to purchase music or apps?

Thanks!
That's exactly how it's designed to work.
Purchase means purchase.

Original thread: https://forums.imore.com/threads/in-app-purchases-use-up-money-in-itunes-account.336292/