Unfortunately, no. In Sonic Heroes you're limited to the four pre-set teams the game provides, so you can't mix and match characters like Espio, Amy, and Shadow into a custom lineup.
Each team has its own fixed roster and unique playstyle, which is part of what gives the game its variety. You'll have to master the teams as they come.