“There is therefore now no condemnation to those who are in Christ Jesus, who do not walk according to the flesh, but according to the Spirit. For the law of the Spirit of life in Christ Jesus has made me free from the law of sin and death” (Romans 8:1-2).
Paul here gives us a wonderful promise, though you note it is conditioned upon our walking according to the Spirit rather than the flesh. You can go to his epistle to the Galatians (5:16-26) for an extended discussion of the difference between walking according to the flesh and the Spirit. In verse 24 of that passage, the point is well made, “And those who are Christ’s have crucified the flesh with its passions and desires.”
It doesn’t make sense to claim to be a Christian unless you are willing to live the life you claim!