What you're really asking is, would the cell wall of the bacteria withstand the difference between the internal pressure in the cell and the vacuum of space around it? I believe the answer is yes, depending on the species of bacteria and, probably, the external pressure in the environment it was in prior to being subjected to a vacuum. And once it got past the initial imposition of a vacuum, its continued survival would depend on whether its cell wall is capable of holding in the cell contents indefinitely, whether it can survive extreme cold, how much radiation damage it's subjected to, etc. Its internal processes would probably cease until warmth and external pressure were restored, and then only if the cell wall hadn't ruptured or leaked substantially.