Your settings, sections and content are kept. If the theme's code was changed, by an app or a developer, Shopify installs the update as a separate unpublished theme and those code changes are not carried over. Keep a note of code changes so they can be applied again. See Update the theme.
Will a theme update remove my customizations?
What an update keeps and what it does not.
