Yes. Confidentiality is essential for honesty and openness and is necessary for success in your divorce. Your attorney is prohibited from telling other people what you have told him or her.
This is known as Attorney-client confidentiality. Honesty is extremely important as this will avoid any unnecessary surprises for your attorney during trial which may result in not only effecting your case but may result in the matter being postponed.