NodeMCU reset button with ouput

Hi! Does anyone know if it is possible to use the reset button in NodeMCU to reset but before reseting send an output?
Thanx for your time ^^