Hello,
You need do all changes in Child Theme and you will not lose the changes after next theme update. Please read more here: https://codex.wordpress.org/Child_Themes
Regards, Robert Hall.