It's hard to say for certain, but there's a reasonable argument that eventually the creators could run out of fresh ideas, and at that point the series might wind down.
Still, Sonic has proven remarkably resilient over the years, so predicting a definitive "last" game is tricky. For now, the safest bet is that as long as there's demand and inspiration, new Sonic adventures will keep coming.