relationship

Can bf/gf be best friends with exes? If so, how and what are ways to make that relationship and your current relationship with your bf/gf work?