You are correct in the details, but not the distinction. This is exactly how classical error correction works as well.