You can, however, settle all of the issues relating to custody, visitation and property division (and, to some extent spousal and child support), and the court will generally rubber stamp a mutual agreement.
And they will do so without much regard to your best interests.