Negative. They didn’t leave. Israel cordoned off Gaza, as if an open air prison, controlling access aka entry and exit: checkpoints controlled by the Israeli military. And perhaps you should examine the actions of Israel in July & August 2014.
Perhaps, you should undertake some reading: The Hundred Yeayrs War On Palestine, would be a good start.
To believe every death in Gaza is a direct result of Hamas, is to recite propaganda and simplistic jargon of the oppressor.
Biden & Harris could end this war and the savage slaughter of innocents. Instead: weapons and money in support of a genocide. Let me spell that out: G E N O C I D E. Funded by USA taxpayer dollars.