Yes, you can co-parent with a friend. This is also known as platonic parenting, which implies having children among friends or acquaintances and sharing custody of the children, but without the obligation to be a couple.