I was wondering if it is okay to take the subject common from a sentence and if the parallelism would be maintained. e.g.,
I went to the party and I had whiskey in the party.
is converted to
I went to the party and had whiskey in the party.
Is the sentence 2 correct and are such formations correct?