Can I lose weight through diet if I don’t go to the gym?

I was thinking, reduce calories by 15-25% and drink coffee if I’m hungry or eat high fibre foods if I want to overeat.

Can I lose weight through diet if I don’t go to the gym?
Post Opinion