Can the mind affect the physical brain? - a simple thought experiment
The short answer is no, this doesn't violate the law of cause and effect because the mind itself is a physical entity. Your thought experiment hinges on the debate of materialism (the mind is a physical thing) versus dualism (the mind is a different kind of thing than physical things). Most cognitive scientists believe that materialism is the correct view.