So an 18-year-old draftee is a legitimate target, but the civilian leadership which ordered him to fight is not?
Arguably civilian leadership can be seen as combatants, but the general usages of modern warfare prohibit deliberate targeting of civilian leadership.
In this case the 18 year old Japanese soldier or sailor was a correct target, their aged grandparents and infant siblings were not.