Could you work with an ex spouse or ex significant other?

I have been working with an ex boyfriend from a long time ago..People I work with can't believe we get along so well and said they couldn't do it. We didn't break up on bad terms plus...hearing his life story...Karma beat the hell out of him.