long-term heart medication

Do I have to take medicines for the rest of my life after a heart attack?

After having a heart attack once, do we have to take medicines for the rest…