Battery replacement should not affect your data. However, we always recommend backing up your data before any repair work as a precaution.