It is very possible.

I am very good friends with an ex-boyfriend of mine. I just came to the conclusion that I could still talk to and confide in him even though he's a terrible boyfriend.

Good luck, Carmen.