Not necessarily! If it happens normally or under debt forgiveness programs, it is unlikely to affect your credit score. Nonetheless, if it happens in the event of bankruptcy, it may adversely affect your credit score considerably. You hence have to tread this path wisely.