Yes. Section 115 recognizes a separate agreement between spouses concerning which parent will have responsibility for the minor after divorce or separation.
However, parental agreement is not a licence to disregard the child's welfare. Family-law agreements concerning children must remain consistent with the child's interests.