No — you're thinking of Toontown, published by Disney. That's the game where you play a cartoon character battling the business-suited Cogs with gags.
Cogtown is a different thing entirely, and the similar names are an easy trap to fall into.