Sure, Hamas dials the tactic to eleven. Point is hiding merchant raiders [1] and clandestine activities (e.g. the CIA's fake vaccine campaign to verify Bin Laden [2]) operate on the same principle. And when those go wrong, we properly blame the people using civilians for cover.
[1] https://en.wikipedia.org/wiki/Merchant_raider
[2] https://www.scientificamerican.com/article/how-cia-fake-vacc...