This is mathematically true, but it does not explain the effect. It reminded me of the calories in, calories out thing.
You gain weight because you eat more calories that you burn. This is, again, mathematically correct, but it offers no explanation of the why
Why do you eat more than you burn ? you move too little ? you eat too much ? your brain malfunctions and it is unable to detect food intake ?