The answer is usually “yes”, but it’s not quite that cut-and-dried. It’s true that if you and your Ex were formally married, then under Ontario family law the matrimonial home is given special status when you split up, regardless of how long the marriage lasted. It’s irrelevant whether you brought the home into the marriage, and how title to it is currently held. Different rules apply to common law (i.e. unmarried, cohabiting) couples, however.
Your Ex will not get half the house, but rather will be entitled to half the value of the matrimonial home you brought into the marriage, subject to adjustments that are governed by legislation and the embedded policy considerations. Although the law sees marriage as a partnership, it does make adjustments in cases where an equal division would be unfair in your circumstances.
Read this article to learn more: Ask Ron: “Does My Ex Get Half My House?”