The sentence uses the third conditional structure, which describes a hypothetical situation in the past and its hypothetical consequence in the past. The correct structure for the 'if' clause in the third conditional is the past perfect tense ('had' + past participle).
The correct sentence is: 'If I had known, I would have come.'
Answer: The sentence is grammatically incorrect. The correct form is 'If I had known, I would have come.'