Debt is indeed an enemy to financial independence and one has to be careful. Even if one is in debt which is inevitable, there should be a way to pay back and shouldn't occur consistently because it will delay one's journey to becoming stable financially.
Then, going into debts because of your carelessness is a wrong thing.