Garbage in garbage out practically applies in most life scenarios. In this case, calories in will determine the calories out and how fast you lose or add weight.
Although it also depends on other factors like your metabolism, physical activity and genetics, losing weight doesn’t just happen. It takes a lot of will power and determination.