Momentary buttons and wifi

Could You disconnect the MQTT system some way and just use Your local buttons?