Can xanax stop a heart attack? No, Xanax cannot stop a heart attack. Xanax is a medication used to treat anxiety and panic disorders by affecting the central nervous system. A heart attack occurs when blood flow to the heart muscle is blocked, typically...