Yes. In general, the higher the battery capacity, the longer the battery can power a device. Battery capacity is expressed in ampere-hours (Ah) or milliampere-hours (mAh).
The capacity is usually indicated on both the battery and its packaging.
Using a battery with a higher capacity is generally not harmful and simply provides longer runtime. However, it is important to always use the correct voltage specified for the device. Using the wrong voltage may damage the equipment.