VW Golf battery Smoked

2 days ago I had to charge the battery as I left the lights on for 3 days SMHHHH… anyway fast forward 2 days I was driving back from rocksburg to Kallangur and when I got home the battery was smoking.

When I change the battery do I need to reprogram it?