You can prepare your own defense, but this is never recommended. Most judges and even prosecutors will caution you against defending yourself.
Would you conduct a medical operation on yourself without the training and experience? The criminal justice system is complicated, and you are required to make decisions that impact your future quickly and without a lot of information. An experienced attorney will know the system, the responsibilities, and roles of those involved and will guide you in making the best decisions.