No, you don't. One of the biggest appeals of Ultimate Marvel vs. Capcom 3 is that you can build a team that mixes characters from both universes. You're free to put, say, a Marvel hero alongside a Capcom fighter on the same three-character squad.
This freedom to combine rosters is a big part of what makes team-building in the game so fun and varied.