Can someone be saved by a gospel that adds legalism or works?

No, an adulterated gospel is accursed, and adding to the Gospel of Grace causes many religious people to miss heaven.

Watch the Teaching: Why Was Paul's Gospel Kept Secret for Ages?