I have cleaned non critical parts in an old dishwasher before, but you have to make sure all the salt is flushed out first and not use cleaning tablets as they're too aggressive
I would never clean stainless as the potential for reactions that give weird sort of shadow colours would be a risk too far