They will. This is the conclusion reached by scientists studying bacterial aggregates. An aggregate is a large colony of unicellular organisms that form a multicellular and rather dense structure. If the aggregate is thick enough, then some bacteria will definitely survive the flight between two planets.
The research results were published in the Frontiers in Microbiology journal.