Yes, a cactus with rot can heal itself if treated promptly. Remove the affected tissue, allow it to callus, and replant in fresh soil. Water sparingly.