Creating a save game option within the code

If what you meant by this save system is @CJW’s saving plugin, then yes, the plugin will be removed post-publishing. This corresponds to CoG’s guidelines that, IIRC, don’t accept any kind of code modification to a published works (javascript modification).

However, when an author writes their own saving system inside their scene.txt, the save system will stay there.