Yes.
Didn't the criminal on the cross go to heaven? (Luke 23:39-43)
That's unfair! How can an evil person go to heaven just by believing?
14Are we saying, then, that God was unfair? Of course not! 15For God said to Moses,
"I will show mercy to anyone I choose,
and I will show compassion to anyone I choose."
16So it is God who decides to show mercy. We can neither choose it nor work for it.
Romans 9:14–16
19Now repent of your sins and turn to God, so that your sins may be wiped away.
Acts 3:19