Yep yep, definately the way to go to lean out and keep muscle.
When I cut, I change my percentages to up the protein, fat and keep to carbs to 100g a day max.
Obviously I get these from whole/healthy sources, and cut out all junk food apart from 1 cheat meal every 10 days when I have a 'high carb day' (which is still wholegrain sourced, apart from the sugar in the cheat meal)
This along with fasted cardio and some good old ECA, and I get fkn ripped lol.