Yes & it depends.
Burning more than you eat will lead to weightloss. The macronutrient profile will determine which type of weight you lose, whether fat, LBM (muscles, organs) or water. If you ate say 100% RMR of just carbs or just fat you would lose all the weight as muscle. There’s nothing to keep the muscle from breaking down or to build the muscle. If you ate 100% as protein you would lose fat.
This is NOT advocating a 100% protein diet. It’s just explaining that calories in matter but so does how you burn them. If you’re trying to lose bodyfat then a <15% carb diet is one choice. I’m finding that low carb diet is better at getting rid of fat. There is the adjustment period while your body reestablishes its “water weight” but then the fat comes off rather nicely.
Hope it answered some. Croooz