Yes, oxygen and hydrogen mixed together will eventually react to form water. To react, atoms or molecules simply need to collide hard enough to overcome their initial repulsion and form bonds. In space it is a slow process, because the pressure and temperature are both low - this means the atoms rarely hit each other, and when they hit, they don't hit very hard.