Yes, comfortably. Sonic's whole premise is supersonic running, while Yoshi's speed is closer to a normal platform character with a flutter jump to compensate. In any direct race, Sonic wins by a wide margin.