IsAre both correct? Yes.
The first means that they haven't gone yet.
The second means that they have gone - so you missed the opportunity to say "Goodbye"
That could be an example of the past tense used as a distancing (politeness) form, as in.
I hope I'm not disturbing you, but I wanted to say goodbye to you before you left, (They have not left yet.)