Yes, really good idea. I have a lamppost on my driveway, so I could run an extension lead into my house and reduce my electricity bill.
When you stay at a campsite, boatyard, marina or anything like that, there are electric points all over the place. Nearly always, they don't work because...