Interesting conjecture. Obviously you can generate antibodies against bacteria, but I have never thought about being "vaccinated" against a bacterium.