Does the DS3231 Clock module rest?

I have a question, I know that the DS3231 shows real time ( RTC ) but, we enter the second, minute, hour,etc in the setup. So if the power goes off and comes back the arduino will get reset and will the DS3231? Because the arduino runs the setup first so will the DS3231 get returned to its default values entered by the user in the setup?

Just a query! Thank you!

Simple way: load your code to enter the time in setup().
Then comment out the time setup code out and load it again. The battery backed up time will keep running.