No, the responsibility is always on who is shooting at civilians. If you can't beat the Hamas in Gaza without shooting civilians, don't shoot, retreat in Israel and focus on protecting Israel.
Most people think killing thousands of people to eliminate a terrorist group is a trade-off that should be made which baffles my mind. Where do we live? No human life can be weighted upon anything else.