Not normally. Sonic is a runner, and his answer to a gap is speed rather than wings.
There are exceptions. In some games he can glide or air-dash when moving fast enough, and cheat devices such as an Action Replay can unlock a genuine flying state in certain titles. Even then it is a special ability, not something he does by default.