Of course Christ himself obeyed everything that is written in the law. Nevertheless, he becomes the substitute penalty bearer of the law’s curse and therein actually secured salvation for all who would come to believe on him as their Savior and Lord.