If you cannot afford an attorney, and the underlying charge carries the potential of jail time, then you may be offered an attorney to represent you (a public defender). That being said, many attorneys may be willing to work with you in terms of setting up a payment plan to cover your legal expenses.