Not true at all. Socialist countries were pretty much the only ones being able to feed their whole population with no one getting left behind. Sure you didn't have bananas all the time but that's beside the point. The only real famines in socialist countries occured in the very early years (after coming from different systems with famines being a regular thing) or during war.
Meanwhile under capitalism, millions starve every year even though we produce food for 10 billion people and could feed billions more without the unbelievably wasteful animal agriculture.