The morality of defending one's country is not dependent on how godly one's country is. Even in the context of pagan Rome, Paul taught that the government (including military/law enforcement) is established by God, and its keeping of order is a carrying out of its God-given function (Rom. 13). Moreover, when Roman soldiers asked John the Baptist what their repentance should involve, he did not say to dissociate themselves from their task of defending the Roman empire, but not to abuse their positions (Luke 3:14). We also read nothing of Cornelius the centurion leaving military service after his conversion.

As for the state of this country, we have fallen far as a culture. But like most nations in the Christian tradition, there is a faithful remnant living among a mostly non-Christian people. I cannot say God is pleased with America, but God has loved and continues to love the American people just as He loves every tribe, nation, and tongue. And if nothing else, the freedom of conscience found in this country is something worth defending, and would be one of the first things to go if this nation ever bit the dust.