Yes. What's most important is not sharing your soon-to-fail plans with others...
If he texted classified info to people he shouldn't have, it's wrong and shouldn't happen again. Jumping to "HE NEEDS TO BE FIRED!" is silly considering you didn't GAF about the previous SecDef going AWOL 3 times, which is a far bigger issue.