It didn't mean much back then, I mean look at this :
Even if Oda knew his story would be linked to Doflamingo, that doesn't mean he planned everything about his story and personality. After all we know he originally didn't even intend to create the SN so it's unlikely he decided what he woud do with all of them just after he created them. He even admitted Law wasn't supposed to become that important.