No... Whilst there's a general correlation between calories consumed and weight lost/gained (after all compare eating 1 brussels sprout vs daily XL pizza and doughnuts), it's a non-linear relationship.
If you were a simple machine, then basic thermodynamic physics would account for energy in vs energy out and work done, like shoveling coal into a steam train and it going x far down the tracks. But you're not, you're a complex biochemical, endocrinological, metabolic and microbiological being, (psychological and cultural aspects are important too). All those factors make calories uneven on their effect on the body.
In short, it's about macros - carbohydrates, proteins and fats - and their ratio in the diet. Carbohydrates elicit a strong insulin response in your body and it is insulin which signals to your body to convert carbs to fat and to lay them down around your abdomen. Insulin response is a crucial piece of the calorie equation... calories cannot be counted in isolation alone. Further to this, abdominal fat can lead to insulin resistance, meaning your body has to pump out more and more insulin to cope with the same amount of carbs. This cycle out of control becomes obesity/T2 diabetes/related conditions. 500 calories of buttery bacon and mushroom omelette has a totally different metabolic effect on the body as munching 500 calories of haribo & crisps. There are other appetite hormones too such as ghrelin and leptin which signal feeling hungry and full up. Eating carby junk sends these signals out of whack.
If you eat low carb, medium protein and high fat, you will find your appetite and cravings will settle down after the first few groggy days. Protein and fat are natural appetite regulators, carbs not so much, which is why you can stuff yourself so much more eating junky carbs than eating steaks & salads.
Exercise is also non-linear in relation to calories, it has a tenuous link to weightloss. See it as a qualitative thing in relation to your overall health, metabolism and mental wellbeing, rather than a quantitative metric in relation to calories in your diet.
There's also a lot of increasing evidence that the profile of micro-organisms you have in the gut affects your weight and health. Some types of microbe consume fat, so it doesn't get assimilated by your own body. So eat unprocessed pre- and pro- biotic foods such as vegetables, salad, berries, kimchi, sauerkraut, kefir, live yoghurt etc.