Is all debt bad?

Is there any kind of debt that's good to use? Or should I always stay out of debt? Never get a credit card or take out a loan?