Yes, you generally need to be separated for one year before filing.
In most cases, Ontario requires a one-year separation before you can file for divorce, although there are exceptions, such as adultery or cruelty. This separation does not necessarily mean living in separate homes, but rather living “separate and apart” under the same roof.