It can be said in that context, but it doesn't really mean "good-bye".
Student or Learner
Can "Be cool!" be used to say goodbye among young peole?
It's usually used to mean "calm down".
What does it mean when you part with someone? The same "calm down", which isn't suitable?