Can I repent on my deathbed?

Yes. There is a most wonderful example of this. While not quite on his death bed one of the criminals crucified with Jesus turned to Him saying, “Lord, remember me when you come into your kingdom” and Jesus spoke to him with the wonderfully assuring words, “I say to you, today you will be with me in Paradise.” Heaven is not a reward, it is a gift, so anyone who genuinely repents and believes will be saved.

However, none of us know the day of our death. It’s not only old people who die. We do not all have warning; some people die very suddenly. We can repent the day before we die, but as we do not know the day of our death, the best time to repent is now. The Bible always urges us to get right with God today.