The Answer is "YES" You have to ad a diode between the battery and the Solar panel otherwise the current will leak out of the panel over night or during low sunlight.
A common diode to use is IN4002, Or In4004. You could Salvage one from almost any power supply or Buy one from dick smiths for around 50 Cents or less.
Current can only flow in one direction through a diode and so will allow the current to flow into the battery but not out the other way.
Simply solder it to the red wire.
The direction of flow is identified by a thin white line at one end of the diode.