Yes — Sonic and the Black Knight was the release in question, sending Sonic into a Round Table setting for a sword-and-sorcery take on the series.
It's worth checking the current SEGA line-up for anything newer, since the franchise has continued well past that point.