This is so easy to test yourself - just get a calorie tracker. They’re dead simple to use these days and they also track macronutrients so you can see what works best for you. I have never been using a calorie tracker, eating at a calorie deficit, and not lost weight. And it didn’t matter in any noticeable way if I was having ice cream and beer for dinner or steak and eggs. Sure, there are loads if variables, but absent some medical condition I challenge anyone to eat at a calorie deficit and not drop weight.