Can you live separate and keep a relationship after already living together?

My bf and I have been together for five years. He has one son (13) and I have two sons (11 & 13). The last few months have not been so great between us. During our last argument, we decided it is best for myself and my kids to move out. We later talked about working on us while living separately. Our arguments always seem to stem bc we are both just miserable from everyday stress. Has anyone ever left after already living together and had a successful relationship afterwards living separately?