I use several different brands of cables. The only Apple cable I own came with the Macbook. I don't use it because it is too short.
Jus take sure the cable you buy is rated for charging.
Also, it does not have to be Thunderbolt 3 in oder to charge.
You should be able to use any decent USB cable. I have used a 3 or so different brands (Amazon Basics, Cable Creation, Anker, Aukey, ...) with no issues.