If you want to play it safe, please hire a lawyer, at least in procedure, but there is no defense lawyer for the question you asked in the title. If it is not a case that may be sentenced to death or must have a defender, a court session can be held without affecting the court's decision.