Can a sketch write to EEPROM while it is running.?

Yes no problem, just use the EEPROM read and write functions as normal.
Saving to EEPROM is not as quick as SRAM but it is in the few milliseconds range.