The bricks of life can form in space