Are there vaccines that are effective against stds?

Yes. Yes, to a couple. Both hepatitis b and human papilloma virus have very effective vaccines to prevent infection. Both actually also prevent cancer caused by those two viruses. Hep b causes liver cancer and hpv causes cervical, vaginal, vulvar, anal, skin, penile and head and neck cancers among others. Both work great when given before exposure so vaccinate early, or before sexually active!
Hpv. There is a vaccine that protects against 4of the most prevalent strains of hpv ( 2 that lead to cervical cancer and 2 that cause venereal warts). It is a series of 3 shots.