Yes, you can get cashback for buying gift cards on Amazon. Here are some of the main ways:
Joining the Amazon Prime Rewards program: If you join the Amazon Prime Rewards program, you can get 5% cashback on select gift cards. This includes gift cards for Amazon, Cabela’s, The Home Depot, and more.
Shopping with a rewards credit card: Different rewards credit cards will offer cashback on Amazon purchases. For example, the Discover it Cash Back card offers 5% cashback at Amazon.
Using a cashback site: You can also use cashback sites such as Rakuten to get cashback on Amazon purchases.
It's important to note, though, that some gift cards don't qualify for cash back or rewards. Read the terms and conditions before making your purchase. You should also shop around to make sure you're getting the best deal.
I hope this helps!