The flu vaccine didn't stop the flu, it mutates faster than vaccines can keep up. You can make the argument [0] that vaccinating during a pandemic (during which new variants arise faster) creates evolutionary pressures that favor variants resistant to vaccines, increasing the chance that virus mutation can get ahead of vaccine development. (Which is not to say we should stop depoying vaccines of course)