Does being friends with your ex work

Tegan

So I got dumped by my bf last night . And he kept saying he’s sorry and that he wants to be really wants to be friends because he still cares about me he’s just doing what’s best for him at the moment. So I was wondering if being friends with your ex work . And does anyone know how to deal with breakups .