Only a few. Most of the roster is unlocked by playing the game's own modes rather than by racing online.
If you're after a specific character, check its stated unlock condition — online play covers only a small slice of them.