It depends on the details.
If your credit card account is overdue or overdrawn significantly, or if the balance is too high and rising faster than you can pay it, then a loan can make the financial situation more manageable.
On the other hand, depending on what kind of loan it is, it might not report on your credit rating. Closing a credit card can actually hurt your score, whereas maintaining one responsibly can actually help out.
If the loan available has a lower interest rate then the credit card, it can save you money in the long run because the balance grows slower.