No, you don’t.
You can start bankruptcy or insolvency proceedings without having taken court action; however, a CCJ will make things easier because it will show that the debt is uncontested (see information on Bankruptcy and Insolvency for further details).