My ex and I had a amiciable split, he lived with us the last 2 years until he passed away last august.

So yes it is possible, depends on the terms of the relationship, and how and why you are splitting.

Good luck.