No. You should first try and come to an agreement with your former spouse or partner. If you are unable to do so, only then should you apply to the court.