No, even though in Romans 4:2 Paul writes that if Abraham was justified by works, he has something to boast about, but not before God
(The Greek word erga, deeds,
does not refer specifically to the law of Moses, since he was not yet alive). Paul’s claim can be clarified as follows: Abraham was indeed a righteous man, a trustworthy covenant partner, a friend who helped his neighbours, and someone who prayed for the godless in Sodom and Gomorrah. But he could not rely on these good works to be justified before God. Had Abraham been able to achieve righteousness before God based on his accomplishments, he would not have found
anything (see Romans 4:1) but would rather have earned it. If this had been the case he could have taken pride in his own accomplishments and he would not have had to acknowledge that his righteousness was a gift that God allowed him to find.1
2 For if Abraham was justified by works, he has something to boast about, but not before God.