This depends on your situation and your attorney. Your attorney can’t lie for you while in court, and they can’t allow you to lie while you are under oath. However, being open with your attorney about your circumstances and whether you’re guilty allows them to have all the facts of a situation. This can provide a more effective defense.