general question - can I save data to arduino without SD card?

Hello ,
wanted to know if I can do th following:

create a webserver using nodeMCU LUA CP2102 ESP-12E( I have this working now).

I want to be able to change the network\password I'm connecting to it using the web interface.
so if I disconnect the unit and then put it in another location I would be able to connected to the new newtwok .
I will explain with an example :
when I upload the code to the device I wrote ssid: "test" ,password="12345"
so when ever I reboot the unit it will try to connect to "test".
in the terminal I put an option to change the ssid it connected to ,
so can I save it and make it the default one now? test2222 password :654321?

hope my question is understanable

Thanks,

the esp8266 does this byself. it always connects to last SSID. even if you upload Blink.

and see WiFiManager library

There is a library or sketch that allows you to ha e multiple sign ins. So you can program and use at home then taktake to work or other places

I believe it is cocered in. A beginners guide to rhe esp8266