18 gauge wire from battery

Is it ok to run a 18 gauge wire directly from my battery to my stereo. It's not the main power wire that comes on with the ignition. I believe it's to run the clock and maybe presets. I would rather not splice into a factory wire. Thanks