No, I don't think it would have. Israels objective is to occupy everything as it is and have been using illegal settlements to achieve. This prolonged war and genocide of Palestinians is just an excuse to further that goal.
The oppression is the biggest reason Hamas can grow. If that stopped I think with time Hamas would weaken and disappear. Like IRA in Northen Ireland eventually did.