I think it is possible. It can be hard, depending on why you broke up in the first place, but if both people try, it is possible and much better for everyone involved if you have children.
Yes, you can be friends but you need to set boundairies for sure.

It is very possible but advisable to be a distance friendship