I am repairing a battery pack (see below) which has some old foil capacitor (100nF) between a sense Terminal and the negative (together with a NTC thermistor).

![](https://i.imgur.com/gzbbUua.jpg)

Can I replace the foil cap with a X7R ceramic cap?