You are kind of right and kind of wrong. Defense lawyers defend clients whether they know they are guilty or not. They will never ask a client if they did the crime. What they do is defend from evidence. It is the prosecuter's job to prove beyond a reasonable doubt that the specific crime was committed by the defendant. What a defense lawyer cannot do is lie in court about something they know a client did do (ie.Yeh, I don't know what laws are overseas but in Australia, if you're guilty and the lawyer knows it, they are not allowed to enter a no guilty plea. So if you want a lawyer to fight charges, you have to lie to them.
![Disciplined Galt](https://tmmacattach.nyc3.digitaloceanspaces.com/data/avatars/s/0/43.jpg?1586824166)