Calories are a very broad way to measure what we need in terms of food. Eating 200-2500 at 50-60% carbs tends to make me fat-ter than eating 3000 at 20%. I cook most of the food I eat, but I take calories into account very broadly, more narrowly when I diet. Just to say, 1000 kcal might be half day worth of your energy needs on paper, in reality it's much more complex than that. In fact, if you are eating decent food…
Unless you have just successfully dismantled the second law of thermodynamics, this is impossible.
Of course if you eat less calories than the bare minimum needed to sustain life, you will loose weight no matter what, but that is an unhealthy way of doing it and no sane nutritionist will risk advising you to do so.
On the other hand, it is actually possible to gain weight by restricting calories just a little. Humans did not evolve in an environment where superabundance of food required voluntary abstinence to keep in good shape. When you just cut calorie intake your body enters "starvation mode": metabolism slows down, non essential processes get suspended, you tire out more easily, etc. The result is that if you do not overcompensate with will force and do exercise, you will end up undercutting your calorie usage below your reduced calorie intake, and grow fast.
The body is wise: it knows when things begin to go bad, they always can get worse.