Do they have Advance Parole, or a dual-intent visa like H1B or L1?
If not, leaving the US right after the interview would cancel their I-485, unless they get the I-551 stamp in their passport. If they overstayed before applying for the green card, that would also jeopardize their case if they left the US before green card approval.