CABG is used to treat coronary artery disease and can lower your risk of a heart attack later. However, all major surgeries can cause a risk of major heart complications. Your risk of having a heart attack remains elevated for about a month after surgery.