Yes, sometimes even the threat of a firearm works.
About three years ago, a buddy of mine heard his doorbell ring at 12:30 in the morning. His wife went to answer the door and my buddy yelled out, "Don't you Dare answer that door without a gun in your hand." They then heard at least two people running away.