If I may be permitted to put on the hat of my past practice, family law, I would say yes, certainly.
I was assistant deputy minister of Child and Family Services in Manitoba, which had responsibility for child welfare, domestic violence prevention programs, child day care, and so on.
In legislation, and in the courts, the most important thing is always the best interests of the child. Many courts, many decisions, and many writers will acknowledge that keeping a child in the matrimonial home is far better than requiring them to move. It has always been my position that possession of the marital home should follow the custody of the children.