If they had replaced his voice with another celebrity of equal name recognition, then yes. If they replaced him with a no-name but equally talented voice actor, yes it probably would have made less money. Name recognition matters, marketing wise (although I would argue it makes for a worse movie).