No, comparing it with sugar would not be considered appropriate. This is because sugar signifies sweetness which can be considered as metaphor for good things whereas salt can be used as a metaphor for bad things. In the story the hailstorm had brought a lot of trouble and loss to Lencho's family. So, it is more appropriate to use salt rather than sugar.