Help please

So I have depression and anxiety and I've been really good for awhile but now I feel like I'm going low again.im so afraid of this because it scares me.my question is with some who has these mental issues can they do stupid things with out even knowing.my biggest fear is what if I just snap and do something stupid and dont even realize it.can this happen???