Madara 4 sure!! He started the Tsuki no Me Keikaku long before Obito even appeared at his hideout.
He already settled everything for his plan, Obito was his plus or insurance.
And as we know atm Madara was lucky to get his hands on Obito.
Cause the betrayal of Nagato, Obito is now forced through some kind of black half of zetsu (Madaras will?!) to Rinne Tensei Madara.
sooooww..... Madara is damn crueler, to know how much people would die or get injured.... badass