"Therefore, can we then conclude that the 9/11 attacks were attacks on legitimate targets? "
1) the attacks were not carried out by a legitimate government defending itself
2) no state of war existed, and certainly no "total" war
3) the attacks were selective against a building which had no importance to military effort. Unlike the bombing of Germany of Japan
So no, not legitimate.