Both sentences are OK, although I might have worded them differently. Sentence 2 implies a cause and effect relationship with no linking words.