If it weren't for Elon Musk, Dogecoin would have failed long ago.
In this case, it is unclear how Doge existed before, until Elon Musk paid attention to it. Of course, having such a patron as Elon Musk would be good for any project, but this is not a decisive factor in the existence of the coin. So in any case, the Dogecoin community is more important than the patronage of Elon Musk.