No one can ever be saved by trying to be a good person or by doing any good deeds. The Bible says in Ephesians chapter 2, verses 8 and 9 "For by grace you have been saved through faith; and that not of yourselves, it is the gift of God; not as a result of works, so that no one may boast." Salvation is wholly by faith in the Lord Jesus Christ - the Bible tells us in Acts chapter 4 that “...there is salvation in no one else...”
The Bible also says in 1 Corinthians chapter 15, verses 3 and 4 that "For I delivered to you as of first importance what I also received, that Christ died for our sins according to the Scriptures, and that He was buried, and that He was raised on the third day according to the Scriptures,"
We can only be saved by confessing our sins and placing our faith in God’s Son, Jesus Christ, Who although being perfect and holy (without sin), died and paid for our sins on the cross. We must also surrender our life to His Lordship (giving Him complete control of every area of our life).