Right. The proximate cause would be cardiac arrest from myocardial infraction.The cancer would be 3rd or 4th line as concomitant disease or contributing factor.Anything listed on the death certificate is counted for those diseases. Your example counts toward cancer deaths and heart attacks.