If both parties have agreed to the terms, then yes, the agreement is enforceable and legal advice should be obtained.