Should you take aspirin during a heart attack to prevent blood clotting?

Should you take aspirin during a heart attack to prevent blood clotting?