Most of my early book / course purchases were financed with credit card debt. I paid off my cards in full with a small portion of my first product launch. I'd do the same thing in a heartbeat.
But, three years later, I shipped my first real product, having done all the learning and coding on that very same machine, and made enough money to recover all that several times over. The knowledge I gained during those years led to a programming career that continues to the present.
Early in life, I think it makes sense to not pay down debt, or take on even more debt, in order to buy something is going to be a force-multiplier for you.
Obviously, without additional effort, there is not much you can do with $3000 that is likely to have a higher return than paying off the card.
But, depending on your own interests and motivation, there are a lot of things that--when combined with your own efforts--will allow you to upgrade your own value. So figure out what those things are, and whether any of them can be had for $3000.