Probably not. Having watched every episode, none of them follow the storyline of Sonic the Hedgehog (2006). A few reasons why:
1. Sonic '06 focused on characters tied to that specific story, not the Sonic X cast.
2. Mephiles was defeated by the end of Sonic '06.
3. The final episode centered mainly on Cosmo's departure.
So if you were hoping to see him, unfortunately it is not going to happen. Besides, didn't Mephiles essentially get destroyed anyway?