Was Mussolini still the leader after Italy surrendered to and joined the Allies during WW2?

After Italy fought Germany and surrendered to the Allies, was Mussolini still in power?