Yes, it is a legally binding document and enforceable in court. Make sure you should write it with utmost clarity and treated very seriously. You may face serious financial consequences if you breach a confidentiality agreement.