Not really, the whole idea came from a very different spot, but there are indeed similarities.
We only have some notion of Buddhist teachings, the inspiration came from elsewhere.