It would depend on the kind of ice cream, I think. A quality ice cream has real dairy cream (the fat content of the milk), sugars, and whole milk.
A "light or fat free" ice cream would not have the heavy cream, whole milk, or real sugar.
This ice cream would certainly not have the calories that real ice cream would have.
I would say good quality ice cream WILL certainly make a person gain weight.