Can you change a WordPress theme without losing content?

Yes. Switching themes keeps core WordPress content such as posts, pages, comments, users, and Media Library files. The new theme changes how that content is displayed. A different template width, typography system, image crop, or block style can make an intact page look very different.
Theme-dependent features need closer attention. Menus may lose their assigned location, widgets can move to an inactive area, and headers, footers, template parts, or Customizer settings may not carry over. Content created by a custom post type or shortcode built into the old theme may stop appearing when that theme is inactive.
Create a full backup and test the replacement on staging with copies of real pages and products. Inventory theme-specific features first, then install the new theme without activating it on production. Check navigation, search, archives, forms, WooCommerce product and checkout pages, responsive layouts, and accessibility before scheduling the switch.
After activation, reassign menu locations, rebuild any missing template areas, regenerate image sizes if the new theme requires them, and clear all caches. Keep the previous theme available until the review is complete. Do not edit or delete production content merely because the new theme fails to render it; first restore the missing feature or migrate that content to a plugin-owned format.