Answer: not necessarily. Power and data capability are separate builds. A 240 W cable can be USB 2.0 only; USB 3.2 or DisplayPort Alt Mode needs more pairs and different shielding.
Specify both requirements, or you will receive a cable that charges fast and transfers slowly.