It is recommended to do this installation on a child theme, otherwise, you may lose the codes after the theme updates. You can follow this guide to create a child theme.