Wrong. If you read the whole story, the saved thief had earlier mocked Jesus along with the other thief. He was also guilty of theft, which is why he was crucified. He was saved by faith, not keeping any commands.
Faith is the keeping of the commandments!
Read John’s first epistle.
Read James epistle.
Read Matthew 7:21-23.
Read Romans ch 2. (who will be justified? Doers, not hearers!)