No, you should never let your bike's main nor its secondary battery on the bike when storing it on a car's rack. The vibrations could liberate your battery from its case and severely damage it.