If the card is valid and passes the iTunes validation you can add the card to your iTunes account, after which you can remove it : Change or remove your Apple ID payment information - Apple Support
Otherwise you might be able to buy an iTunes gift card (if they are available in your country ; though probably not a $5 card)