That depends on which scripture you are reading. According to Paul, apparently you are justified by faith, not works:
Romans 3:
28 Therefore we conclude that a man is justified by faith without the deeds of the law.
But according to James, you are justified by works:
James 2:
21 Was not Abraham our father justified by works, when he had offered Isaac his son upon the altar?
James 2:
25 Likewise also was not Rahab the harlot justified by works, when she had received the messengers, and had sent them out another way?
So how shall we reconcile this apparent discrepancy in the scriptures? That requires a careful reading of the Bible. A careful reading of Paulās letters reveals that he was addressing those comments to those Gentile Christians who had come under the influence of certain Jewish converts to Christianity who believed that Gentile converts had to comply with all the rites and rituals of Judaism to be saved, including circumcision. In other word, they believed that Gentile converts to Christianity had to become Jews to be saved. What Paul was trying to say was that adherence to those ancient Jewish rites without faith in Jesus Christ was powerless to save someone. That is what he means by āworksā. He didnāt mean that you donāt have to do anything to be saved! On the contrary, elsewhere he bluntly tells them that those who break the commandments of God are not saved:
1 Corinthians 6:
9 Know ye not that the unrighteous shall not inherit the kingdom of God? Be not deceived: neither fornicators, nor idolaters, nor adulterers, nor effeminate, nor abusers of themselves with mankind,
10 Nor thieves, nor covetous, nor drunkards, nor revilers, nor extortioners, shall inherit the kingdom of God.