Question: is the gedo statue kaguya?
Answer: Kaguya got sealed. The god tree turns to ten tails. Hagoromo defeats the ten tails and makes the 9 tailed beast. Madara got his rinnegan and summoned the gedo statue which is kaguya.