Yes, under a dictatorship, it's literally happened before. Are you being serious or is this supposed to be some sort of gotcha where you go "socialism can't exist without democracy so the label is pedantic"?
Socialism under one party governments have happened, that is not democracy, even if democratic elements exist within. You can't have democracy under one party, the people need the ability to form an opposition party if the need arises.