To emphasize the point, a vaccine to reduce the chance of suffering from an infection only works until the virus mutates in a way that evades the immune response the vaccine prompted.
Once the virus mutates, the vaccine doesn’t work very well, which is why there are new flu vaccines every year tailored to what is thought to be the most common strains.
There can be cures for specific problems caused by a given disease, but most vaccines are pro-active and try to prevent the initial infection from taking hold.