Yes, that would work, but it's a bit complicated just to turn a portable lamp on and off. This would work, too:
http://www.amazon.com/Heavy-Duty-Co...f=sr_1_19?s=hi&ie=UTF8&qid=1310376476&sr=1-19
Or even this:
http://www.amazon.com/Leviton-1469-...f=sr_1_12?s=hi&ie=UTF8&qid=1310376476&sr=1-12
http://www.amazon.com/Heavy-Duty-Co...f=sr_1_19?s=hi&ie=UTF8&qid=1310376476&sr=1-19
Or even this:
http://www.amazon.com/Leviton-1469-...f=sr_1_12?s=hi&ie=UTF8&qid=1310376476&sr=1-12