If there no court order is notarized child custody agreement with both parent legal?

It's unenforceable unless registered with the court. This can be done Pro Se, but needs to be done through a certified mediator.