If you ate nothing, then no.
If your calorie intake is negative, you will lose wait over time, so the only way to gain weight is the actual weight of the food and drinks you intake.
If for some reason your weight goes up over time, there would most likely be a medical explanation, such as retaining extra water in your body etc.