Yes. Any other questions?
To be slightly more detailed - you'll need a struct/type that keeps track of gamestate. Then you'll need a function to write this to disk in some structured manner. Best option is to serialize the struct/type into a JSON string, and simply dump this to disk. If worried about people editing their save-data, you can take the JSON string and put it into a memblock before saving.
To load back, you need an option at the start of the game to load the save game. This reads back the JSON (or if using a memblock, reads the memblock and then extract the JSON from it), transfer the stored values to the gamestate struct/type, and starts the game from that gamestate.