Is it normal that sparks are generated when the battery is plugged in and unplugged?
It is normal for sparks to appear when the battery is plugged or unplugged.
There will be a short electric spark in the moment of contact with a larger voltage, don't worry.