Yes, a public defender can get a case dismissed. There are so many instances where the case gets resolved by plea deals. The case does not even need to go to court. All those things require good persuasion with the prosecutor.