No, a Sonic Heroes 2 was never made. Instead of a direct sequel, Sega went in a different direction and released Sonic Unleashed.
While fans of the team-based Sonic Heroes formula might have hoped for a follow-up, Sonic Unleashed offered its own take on the series with the introduction of the Werehog. So for now, Sonic Heroes remains a standalone entry.