Well, it depends on how the relationship/friendship was left or ended. Sometimes it's good to keep in touch with old friends or say "hi" if path crossed in the present. If you are referring to exes. I generally do not say "hi" to them only because its' weird.