People who lead a sedentary lifestyle may also have a higher risk of heart attack after consuming a cup of coffee.