Would be better to just have a firearm on your person.
I keep a sharp, functional sword in every room. At close quarters, it's just as lethal, and children understand from an early age about "sharp, don't touch".
I also keep a gun in each "retreat room".
We have 4 dogs and we keep guns all over the bedroom. They are loaded, but not chambered. And I hope if someone hears me racking a gun, they won’t make me shoot them with it.
Hiding a gun in every room is not the best plan, IMHO. The odds of a child stumbling across it, or even a pet somehow messing with it, are too great.
_______________________________
All through childhood, and in every house we lived in, there was a firearm accessible in every room except the kids bedrooms and bathrooms. We (as kids) didn’t know the guns were there until we were each around 12, at which point all of us had been taught to shoot (daddy started teaching us at 5 with a Daisy). We never had an accident or even a near accident.
Where and how your firearms are hidden is important, but it can be done safely with a bit of planning - even with kids in the house.