No. A public defender is your lawyer. Their job is to defend you. But they work for a state-funded office. They see the same prosecutors and judges every single day. They have a job to keep. Most of them care about their clients. The problem is not that they work against you. The problem is that they have 150 to 300 cases open at the same time. They do not have the time nor the financial backing to give your case what it needs and therefore are likely to try to make a plea deal vs fighting your case at a lengthy trial.