Yes, heart attacks may still occur while on blood pressure medication. Some studies have even shown that blood pressure medications may increase the risk of sudden cardiac arrest.