Excellent, this is correct.
In the battery there is a shift of charges. One part of the substances emit negative charges, the other one absorbs them. The potential for this redistribution is called chemical energy.