Yes. Netanyahu needs a Hamas. If there wasn't one there already, well it made sense to create one. However, Iran was and remains their biggest supporter.
The corollary of this is worth stating clearly: Netanyahu worked alongside Iran in order to destabilise the peace between Palestine and Israel.
The Palestinians were starting to look too much like the decent human beings they are to the Israeli voters, so what could be better than a handing power over Gaza to a faction that lives down to every anti-Muslim prejuduce...
@-alan- true, the whole Gaza operation has been random, unplanned and indiscriminate, and because there is no evidence that any overall goal is being pursued, that would allow the chance that clearance is the plan. But what has been done is so random and purposeless, it's far likelier that there was never any mission except "go in there and rough them up" (IDF general order #1)... certainly not much has been done to find and free the hostages: an IDF unit even managed to shoot dead some of them who had been released.
This looks a lot more like the US in Vietnam than the Serbs in Yugoslavia - an ill-disciplined, over-armed force acting with no clear mission and no respect for the rights of the civilian population.