No, it was through evolution. Billions of years ago the first creature on earth was a eukaryote (idk, it might be a prokaryote) that was swimming in water and from there 'science' happened (meiosis, diffusion, etc) and it soon became a fish or something, and then you know the rest. (This is just me summing up the BBC series on how life came to be.)