Yes, you can. However, you’re still responsible for paying off the balance, and that balance can still accrue interest. Closing the card prevents you from using it — which can actually be a good thing if you struggle with self-control — and keeps you from being charged an annual fee.