Yes. Unlike some viral infections. You can get repeated infections with the same strain of many bacteria. Even with bacteria which induce the development of protective antibodies like strep. Pneumoniae you can be infected by different strains of the same bacteria.