( ) - Exercising or having sex just about triples a person's risk of heart attack in the hours immediately afterward, especially if the person does those activities infrequently, according to a new analysis in the Journal of the American Medical Association. Journal of the American Medical Association.