Maybe not. At this point I don't know what the 555 does to the 4013 to turn it off but I think if its not a signal to pin 3 we could use that along with a transistor or two to help determine if the pantry door is open or closed then it could pass or deny the pulse from the mechanical (on/on) switch. But I'm just talking out loud here.
So what is the current state of the wiring? Is timer pin #2 still disconnected?