Johnston County Process

Is it possible to get a custody consent order signed by a judge prior to filing for divorce?

Any pros or cons to doing this before filing?