Of course they do.
Keep in mind that the Hamas fighters are well trained in non conventional tactics by Iran. Bombing is one thing but once on the ground Hamas has the advantage. It really is a real war. It's not one sided as the Israel demonizers try to sell.
https://www.reuters.com/world/middle-east/hamas-turns-gaza-streets-into-deadly-maze-israeli-troops-2023-12-15/
JERUSALEM/CAIRO, Dec 17 (Reuters) - The Israeli army's death toll in Gaza is already almost twice as high as during a ground offensive in 2014, a reflection of how far it has pushed into the enclave and of Hamas' effective use of guerrilla tactics and an expanded arsenal.
Israeli military experts, an Israeli commander and a Hamas source described how the Palestinian group has used a big weapons stockpile, its knowledge of the terrain and a vast tunnel network to turn Gaza's streets into a deadly maze.