Most Helpful Guy
Of course it's a good idea. Just because you two broke up doesn't mean you have to stop talking.
Saying hi will show her that you're okay with the situation and that she should be too. You're an adult, she's basically an adult, so the both of you should start acting like one.