Apologies if this is too much of a spoiler, but you might be a bit surprised by how the film's immediate sequel plays out.
Edit: And considering when it was made and who made it, a happy ending was by no means guaranteed. Compare and contrast with the endings of Silent Running or American Graffiti.