Yes and no.
If Rahab, the prostitute, had not acted on her faith and hid the spies she and her family would have been killed with the others in her city.
And according to her testimony it wasn't just her who believed.
Before the spies lay down for the night, she went up on the roof
9and said to them, “I know that the Lord has given you this land and that a great fear of you has fallen on us, so that all who live in this country are melting in fear because of you.
10We have heard how the Lord dried up the water of the Red Sea for you when you came out of Egypt, and what you did to Sihon and Og, the two kings of the Amorites east of the Jordan, whom you completely destroyed.
11When we heard of it, our hearts melted in fear and everyone’s courage failed because of you, for the Lord your God is God in heaven above and on the earth below.
Hebrews 11 -By Faith
If the thief on the cross had not asked Jesus to remember him when Jesus came into His kingdom he would have perished that very day. But no work was performed by him to have his sins forgiven. It was grace through faith. "Mercy"