It is probably obvious that people may separate that is - leave the matrimonial home as they see fit. There may however be adverse consequences to just walking out. The court may well consider that young children should remain in the home, pending resolution. If there are young children in the home and custody is in dispute, please consult a lawyer before leaving the home.
To emphasize: Parents should consult a matrimonial lawyer before separating when they have young children and custody is in dispute. The date of separation affects the division of property under Ontario property law.