A lawyer is always a helpful thing to have when you're required to appear in court to answer to criminal charges.
If you cannot afford private counsel, you show up for court on the appointed day, and ask for a Public Defender. The PD will negotiate on your behalf.

