Can sliding doors be replaced while retaining the existing frame?
Sure, if they're available. Most sliding doors simply lift out. Some have a retention mechanism that would need to be removed first.

You'll probably need to level the doors to fit the frame using built-in adjusters, and verify that the latch hardware still aligns.