Obey does not equal believe, if that is what you are saying. Paul went to great length to explain the relationships between believe and obey. I use an input-process-output structure to show the relationships.
Romans 10:8-10
Input (believe in your heart) -> Process (accept God raised Jesus from the dead) -> unto (onto the next stage) righteousness.
Input (confess Jesus is Lord, do whatever the Lord says) -> Process (obey the righteousness of God) -> unto salvation.
John teaches the similar two stage process.
John 11:25-26
I am the resurrection, and the life: he that believes in me, though he were dead, yet shall he live: And whosoever lives and believes in me shall never die.
Notice that 'believe' occurs twice and that is because the there are two separate things to believe. And it is only the second that one never die.
In short, we must be mindful of the part that is being taught. James is prominent in teaching part 2, confess Jesus is Lord, obeying the Lord with faith. Paul describes this working faith as the faith of Christ. Thus, in addition to being justified by faith in the gospel, we are also justified by the faith of Christ, and the latter faith can be a gift, a spiritual gift of the Holy Spirit indwelling in a believer.