The capacitor is a device used to store an electric charge, consisting of one or more pairs of conductors separated by an insulator.
The battery is a container consisting of one or more cells, in which chemical energy is converted into electricity and used as a source of power.
We know, that capacitors will discharge rapidly while batteries will discharge slowly.
A new type of capacitor known as a supercapacitor is capable of storing electric energy much like batteries.
However, more research needs to be done on this technology which would be time and cost-intensive. Supercapacitors need to evolve a lot before they actually replace batteries.
Therefore, normal capacitors will not act as batteries.