While the term “domestic violence” is more often used to refer to violence between couples — at least in movies and TV shows — the legal definition of the term is a bit broader. This depends on where in the world you are, of course, but usually, domestic violence refers to violent behavior between intimate partners, whether they are current or former partners. In theory, you can be a victim or perpetrator of domestic violence even if you have never lived with the person in question.
And yes, most legal definitions account for domestic violence in former partners. So, if you got a divorce or broke up with your boyfriend, moved out, and they are still harassing or physically abusing you, that is still domestic violence. Although there are some variations on how different jurisdictions handle domestic violence cases, so if you want a more detailed overview, you should speak to criminal lawyers in Parramatta or whatever region you live in. Law firms like this one may also be good sources of additional information, and many offer free case evaluations.