Official Apple Support policies state that gift cards cannot be used to purchase other gift cards.

This unified system is primarily available in the US and select other regions. If you are in a country where iTunes and Apple Store cards are still sold separately, you generally cannot transfer funds between the two systems.

Once redeemed, the funds are added to your Apple Account Balance .

Used for physical hardware like iPhones, MacBooks, and accessories.