Internecine denominational warfare certainly never aids military effectiveness.
Given the obvious FACT that American military leaders have almost universally been both very religious AND very diverse in their faiths it is apparent to all but the willfully blind that such divisions and diversions have played no significant role in our history.
Maybe you have another country in mind.