In other words, when you buy and put money on a compromised card, the scammer can spend or transfer the funds before you or your gift recipient can use it. Why do scammers love gift cards?
Add to that the high risk of investing in crypto in the first place—we simply do not recommend buying crypto with a credit card. In short—yes, you can buy crypto with a credit card.