The topic of whether or not it’s ok to stay friends with your ex isn’t a simple yes or no answer, it depends on the people, the relationship, the way and reason it ended and much more. Some people will say you can definitely stay friends with your ex while others think it’s best to cut all communication off completely. You really just have to be honest with yourself as to why you actually want to stay friends when the relationship has ended. Do you believe you both are just mature enough to still have a friendship even after breaking up or do you have an ulterior motive like possibly rekindling the relationship or still having that emotional support. Here is an article that gets more detailed about the topic of remaining friends with your ex after a breakup and why it might not be such a good idea.
I hope you find it interesting!