Most often, yes.  You don’t have to be on very friendly terms to mediate.  Experienced mediators — especially those with mental health degrees — can help people work out agreements, even when they’re still upset with each other.  So, as long as each of you is willing to ‘come to the mediation table’ and be somewhat reasonable, and your mediator has the necessary training and experience, you can most often mediate.