No. Sonic Battle does not have a hidden code that turns Sonic into Dark Sonic; that transformation belongs to the Shadow storyline in the games and anime rather than to this title's mechanics.
Any "secret code" circulating online for it is almost certainly a joke or a hoax. If you want the real unlockables, the in-game options menu and the game's own challenge list are the accurate sources.