Yep. Telling someone to be careful or not to drink and drive has the same connotation as telling someone to have a safe trip when they have a long drive somewhere. It's just a thoughtful and nice thing to say.
Disclaimer: I am only responsible for what I say, not what you choose to understand.