Can a child have congestive heart failure and then have a heart attack?

CHF. if you mean MI with heart attack it is a rare combination but if you mean sudden arrhythmias leading to sudden death with congestive heart failure, it is more common then MI.
Not same as adult. There are rare illnesses like kawasaki disease that can produce coronary aneurysms & a heart attack in a kid.For most that would go into heart failure, it would be from a congenital heart defect or myocarditis. In both instances those patients would have a heart fail & develop a fatal rhythm disturbance.That has some similarities to an adult heart attack but i wouldn't use the terms that way.