Board Thread:Naruto Discussions/@comment-25442710-20140920121351/@comment-26302001-20141001205302

No, he got the DNA when he was on deaths door, from Kabuto, after being stabbed by Madara. He got the chakra before getting stabbed by Madara.