Not in any official game. There is a fan-made Sonic epilogue in which Sonic takes a shot that turns him, and Tails finishes him off — but that's fan fiction, not canon.