This is good as general advice, but “a cable is a cable” is not true. You can buy cheap and dangerous cables from overseas that could burn your house down or ruin your device. You don’t have to buy Apple, but you should buy quality cables and chargers from known, reputable manufacturers.