friends or strangers

Once a relationship ends is it a bad idea to keep in touch with your ex? Does anything good come out of keeping in touch with the person who broke your heart? He ended things with me bc he wants to meet people and only sees me as a friend but I don't know if I want him in my life as a friend.This is my first relationship and I don't know wether to stop talking to him or just keep living my life like it was without him at first. I don't want karma to coma back and bite me! Please helpp