It is generally safe to charge your camera battery while it is inside the camera. However, if you prefer to charge it externally using a battery grip or a dedicated charger, make sure to follow the manufacturer's instructions for safe charging.