Low to Moderate caffeine consumption is generally safe for most people with heart diseases. However, if you have arrhythmia or other heart conditions, then the doctor may recommend that you limit your caffeine intake. You can consult a dietitian for further information.