No. There is no cheat code for Sonic and Sega All-Stars Racing.
The game does not include a code entry system, and nothing of the sort has been found in it. What the game does offer instead is unlockable characters and tracks earned by progressing through the single-player events, so that is where to put your effort.