Ice exists in outer space, but the damage from Cone of Cold might not. Space is already too cold for normal life-forms to survive for long, so if they are wearing a spacesuit, they already have some protection from cold-based damage.  Also, the spell contains a cold blast of air. Space is a vacuum so a blast of air wouldn’t be able to interact with that environment.