No. In many cases, parties reach an agreement without the assistance of the court. There are alternatives to commencing proceedings in court and these include mediation, conciliation, counselling and conferencing.
However, it is important that any agreement is properly formalised, and that you give thought to what details should be included in the agreement, and what areas are likely to give rise to possible conflict in the future, so we can include provisions about all these matters.