Yes, Sonic can transform into Dark Sonic. You can see it happen in Sonic X episode 67, "Teasing Time," and it also features in fan works like Nazo Unleashed.
It's one of the more striking alternate forms the blue blur has taken on.