Yes. It is safe for heart patients. People with heart problems are prone to covid-19 complications. So, vaccination is recommended.