Yes, but it requires the right tools. Flexible duct has a thin plastic inner liner supported by a wire helix, and a stiff rotary brush will tear it. Air whips and softer agitation clean flex duct effectively without damage. Torn or deteriorated flex duct should be replaced, not cleaned.
Flexible duct is a thin plastic liner stretched over a wire coil, wrapped in insulation and an outer jacket. It's inexpensive, fast to install and dominates Central Texas attic construction, but the liner is fragile compared to rigid metal, and the corrugated interior catches more debris than a smooth wall does. A tool that's appropriate in sheet metal is destructive here.
Air whips and compressed-air tools that agitate without scraping, run under continuous negative pressure. The technician should also be handling the duct gently at connections, flex runs are frequently held on with a band clamp and mastic that has aged in attic heat, and rough handling separates them.
In those cases cleaning is money spent on something that needs replacing anyway, and a good technician will tell you so at the inspection.
Long flex runs that sag between supports create low points where debris collects and airflow suffers. If an inspection turns up significant sag, correcting the support is usually cheap and delivers more than the cleaning does.
Look in the attic. Flex duct is round, insulated, silver or grey, and visibly flexible. Rigid metal is boxy or round sheet metal that holds its shape.
Its corrugated interior holds more debris, so homes with flex runs often sit at the shorter end of the interval.