Yes, absolutely.  That’s considered the collateral damage of war.  Not every German was a Nazi, but we bombed their cities into the dark ages with the goal of killing and terrorizing every German civilian in order to break their will and output.  If Canada’s government bombed another country you can bet that you, I and everyone would be a legitimate target as that country reacted.   When the government of Gaza launched its preemptive attack in Oct 2023 that was akin to Japan’s preemptive attack on Pearl Harbour in Dec 1941, after which every citizen of Gaza and Japan were going to be attacked.  I do wonder if the citizens of Germany, Japan and now Gaza asked themselves, what the heck was our government thinking?  I can guess what the government and military of Israel was saying, mirrored by USN Admiral Halsey after Pearl Harbour, “Before We’re Through With ‘em, the Japanese Language Will be Spoken Only in Hell!”