Does your debt affect your credit score?

When you're in debt, does your debt affect your credit score?