Replacing the fan should not affect your MacBook’s data or software. However, we always recommend backing up your data before any repair service as a precautionary measure.