This is not strictly true. A bad cable may reduce charging speed. However you're right that a good cable cannot improve a bad wall adapter.
The determining factor is the gauge of the wire (sorry if you're already aware of this) 28 is bad, 24 is what you get with most devices, and 21 is even...