'Horror' can take place in any location. It is not confoed to Gothic mansions, Egyprian tombs or towns in New England. H P Lovecrafts' short story In the Walls of Eryx is a psychological horror sotry , even if it is set on Venus. Thus while Alien is set in deep space, it remains horror, and horrot in thre Lovecraftian vein. The Nostromo is as dark, labyrinthine and isolated as any haunted castle, and the xenomorph itself close kin to the Spawn of Cthulhu, the Deep Ones, the abominable Mi-Go or the Elder Things.
Science Fiction, however, is something else, and whatever the setting and the tech, it's key idea is that of people solving problems, as exemplified in the best work of Isaac Asimov.