No, Israel does not have a right to defend itself in Gaza. But the Palestinians do. 

Basic morality and simple logic dictate that the right of self-defense belongs to the Palestinian people, not to their oppressor. And international law agrees.