There has already been an experiment that proves it is possible.
The Miller–Urey experiment[1] (or Miller experiment)[2] was a chemical experiment that simulated the conditions thought at the time to be present on the early Earth, and tested the chemical origin of life. Specifically, the experiment tested Alexander Oparin's and J. B. S. Haldane's hypothesis that conditions on the primitive Earth favoured chemical reactions that synthesized more complex organic compounds from simpler inorganic precursors. Considered to be the classic experiment investigating abiogenesis, it was conducted in 1952[3] by Stanley Miller, under the supervision of Harold Urey, at the University of Chicago and later the University of California, San Diego and published the following year.[4][5][6]
After Miller's death in 2007, scientists examining sealed vials preserved from the original experiments were able to show that there were actually well over 20 different amino acids produced in Miller's original experiments. That is considerably more than what Miller originally reported, and more than the 20 that naturally occur in life.[7] There is abundant evidence of major volcanic eruptions 4 billion years ago, which would have released carbon dioxide (CO2), nitrogen (N2), hydrogen sulfide (H2S), and sulfur dioxide (SO2) into the atmosphere. Experiments using these gases in addition to the ones in the original Miller experiment have produced more diverse molecules.[8] More recent evidence suggests that Earth's original atmosphere might have had a different composition from the gas used in the Miller experiment. But prebiotic experiments continue to produce simple to complex compounds under varying conditions.[9]