No I dont think it was destroyed during WWII. I am almost 100% sure. Perhaps someone could correct me if I were wrong.
I have found many mistakes on Wikipedia.
In 1918 under Soviet rule, Yelagin Palace was turned into a museum but most of its unique collections were sold abroad and in 1928 it was eventually closed.
During WWII the palace was left in ruin and the park and pavilions were badly damaged. The palace facade looked as damaged as Pavlovsk (maybe a little less so because it may not have been burned); there was no roof left. The rooms were as heavily damaged and as destroyed as other palaces you may have seen pictures of.
Reconstruction of the palace and its interiors started in 1945. Clearing of the island and restoration of the pavilions started in 1961. Final restoration of the interiors started in 1983 and Yelagin got the status of museum in 1987.