Is it possible to gain more body mass from a food than the mass of the food itself?
Short answer - no.  Due to Conservation of Mass, your body cannot gain more grams of mass than it consumes.

Long answer - maybe.  Eating certain foods could cause you to retain more water, more unprocessed waste in your colon, etc.  However, if you account for all the mass from all sources, then it must always balance out.