No anime, pelo menos,
he never had time to go through the official ceremony before he was killed. So no, he was only a candidate for Sixth Hokage, and never officially held the title. You can see on his page at the Narutopedia that Danzou was always referred to as "candidate".