No, this is more than a simple confession of Christ. James does not even mention this. James is not only confirming the importance of one's demonstration of faith with regard to helping the helpless but also in regard to one's obedience obedience. This is why he uses the example of Abraham. "You see that faith was working with his works, and as a result of the works, faith was perfected." It is only through obedience that faith is made perfect, other wise it is meaningless, both to the individual and to God.
And of course, obedience comes from faith(Rom1:5)
However, Paul tells us when we are faithless Christ remains faithful for he cannot disown himself(2Tim2:13)
So is it as black and white as it first appears?