If you wish to lower your risk of heart disease, then you should make sure to be physically active, quit smoking if you do, eat healthy foods, lower blood pressure, etc.
Hereditary diseases such as certain types of cancers can be carried down in your dna.