Heart Attacks: Do you take dozens of pills to prevent a heart attack? You may no longer need them! Just two vaccinations a year will suffice. A new vaccine that prevents heart attacks has been discovered through a major medical study conducted by the University of Oxford.