I can say I am trying to keep things as friendly as possible when I have to deal with him (you can use the term "civil"), but friends? Don't really think so. It all depends. My ex has crossed the line, not for being a partner, but also for being a friend, and I do not trust him much.
I am sure that there are people who do not cross the line and you can be friends with them just fine.