Its possible, but I feel especially in the chapter Sasuke asked Hashirama about the villages and cycle of hatred he would have told him he met the sage and chose a different path and perhaps he was responsible to a degree for what was going on, I definently don't think madara met him, he was exceptionally power hungry even for an Indra reincarnation and he as they said surpassed the transmigration and grew closer to the sage and Kaguya, so I don't think either met mainly because I feel Hasi would have told someone probably Sasuke, or have learned some other way to handle Madara, but Madara I would say for sure didn't meet him.