No, Dr. Eggman didn't create Sonic. Sonic is the hero of the series, not one of Eggman's creations.
The character Eggman did create is Shadow the Hedgehog, via Project Shadow. So while the two are often linked as rivals, their origin stories are quite different, Sonic is a free-spirited hero, and Shadow is a product of Eggman's work.