Yup. If I believe an omnipotent, omniscient being told me to do something, I would do it. If I get caught and punished as a result, then obviously that being wanted me to get punished; or I'm so far gone that any punishment done to me at that point would not matter.
Once again, murder is murder... good luck explaining the voices in your head to the police