If it’s strictly professional, you only discuss with them something that’s necessary, you don’t spend too much time with them, and there is no joking or sensational words, then yes. Otherwise, just being friends with them without a necessary reason (like working on an important project) would not be permissible