Yes. Conduct amounting to serious physical or mental harm can be relevant to statutory divorce grounds, and violence or safety concerns can also matter in decisions about child contact and welfare.
The Civil Code allows visitation restrictions where contact may be contrary to the child's interests, while the Act Relating to Children requires the child's best interests to be prioritized.