how does calorie deficit work

so i'm a little confused 😅 to lose weight, do i have to burn off more than what i eat everyday?

for example, i eat 1,200 calories a day, i need to burn off 1,200 calories or more on the same day, everyday, in order to lose weight?