Jesus told the repentant man on the cross with Him, “today you will be with me in paradise.” If you are able to get baptized, you should. If not, then you can’t.
The Church has always held the firm conviction that those who suffer death for the sake of the faith without having received Baptism are baptized by their death for and with Christ. This Baptism of blood, like the desire for Baptism, brings about the fruits of Baptism without being a sacrament. (CCC 1258)
For catechumens who die before their Baptism, their explicit desire to receive it, together with repentance for their sins, and charity, assures them the salvation that they were not able to receive through the sacrament. (CCC 1259)
So if someone truly has a change of heart, loves Christ, repents, and has a desire to be Baptized, has the hope of salvation; as well as if an unbaptized person dies for the faith, they are baptized by blood.
Recall the thieves on the crosses next to Jesus, one at the last moments of his life he repented, believed and he was saved.
For those looking for what Catholicism teaches about baptism, here it is. Now don’t take my word or Barad’s word for it. Go read it for yourself!