What happens when married people get a dv restraining order?

Do they continue living in the same house sometimes? How would that work?