Is it ok to remain friends with an ex while married?

Is it ok to remain friends with an ex while married? To still be in contact with them. An ex with whom you don’t have kids with. At what point is it crossing boundaries?

Is it ok to remain friends with an ex while married?
Post Opinion