We are justified by the obedience of faith.
There is no other way to be justified.
But now is made manifest, and by the scriptures of the prophets, according to the commandment of the everlasting God, made known to all nations for the obedience of faith:
Romans 16:26
It’s starts by obeying the Gospel, and it ends by walking according to the Spirit, which is also called obeying the truth.
JLB
Yes, obedient to faith through grace as we allow our faith to grow in the knowledge of Christ will we then learn to be obedient to His commands.
2 Peter 3:18 But grow in grace, and in the knowledge of our Lord and Saviour Jesus Christ. To him be glory both now and for ever. Amen.