Yes, you have to enter form 1099-C on your tax return.
There are certain cases where student loan cancellations are not counted as income. Please see details in this IRS document.
Also, if you are insolvent, you can file form 982.
Please read this TurboTax answer on how to file form 982.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"