Changing the theme won’t remove the metafields, but this may affect the your shop’s storefront.

Some themes feature the functionality to display the metafields “out of the box”, however, most likely your metafields won’t be displayed at the product page as they used to be. 

We recommend you to consult with your developer before switching to another theme to make sure this process won’t affect your store’s design or functionality.