Yes....they could even post a sign outside that says “You want to rob the dormitory next door - there are absolutely NO GUNS!” “If you proceed to enter here with intent to do harm, you will DIE.”
I fail to see the problem with this.