There are some ideas about Mac-compatible cables, adapters, & specs; here:
• Find the right power adapter and cable for your Mac notebook - Apple Support
https://support.apple.com/en-us/HT201700
[An output wire should be at least same as one shipped with the power adapter.
And have correct connectors. There's some wires are rated for Data & Power, too.]
• About Apple USB power adapters - Apple Support
https://support.apple.com/en-us/HT210133
Without comparisons and specifications, this topic is too speculative to guess
when your device(s) may be damaged, among other things that could happen.
(You may give the cable a field test; while in dire straits, it may
do OK for awhile. However I'm not apple; just DIY person who
also 'volunteers' sometimes, here in Apple community online.)
• If your USB-C power adapter isn't charging your Mac notebook - Apple Support
https://support.apple.com/en-us/HT204652
Depending on your location, region, country; replacement correct parts may be
purchased from Apple-authorized resellers. Or AASP; independent repair facilities
may sell replacement Apple accessories to customers. (May ship to locations, too.)
• Apple - Find Locations
https://locate.apple.com/
(sales, service, support, & etc)
• Apple - Find Locations - Location Selector
https://locate.apple.com/findlocations
Good luck & happy trails!🌻🐝