I think it may be beneficial to discuss grace and heaven slightly more thoroughly.
yes, if we die in the state of grace, we will not be condemned and will ultimately enter heaven.
We get in the state of grace by asking for it sacramentally through baptism- nothing more is required. When we are baptized, we gain sufficient grace to go to heaven and become born again, free of all prior sin.
To stay in the state of grace, we must do the will of the father, loving god and neighbor, avoiding mortal sin. There is no accounting of how much we do. We simply need to love- which is to help others without expecting anything in return. Those that are trying to earn their way to heaven are not living in the state of grace because they are doing their works for reward and not out of love.
If we fall from grace through sin, we can be reconciled to God through the sacrament of reconciliation (confession). Again, in God’s mercy, all we need to do is ask to be returned to grace, if we are sincere about repentence and living lives of love. This process can be repeated as often as necessary and as often as we desire.
The more we partake of the sacraments (particularly the eucharist) and the more we practice love, the easier it becomes to avoid sin. This is because these actions strengthen the grace within us. Ultimately, this process reaches a conclusion when we know longer have a tendency to sin. If we reach that point before death, we will enter heaven directly. If we die in the state of grace but still have a tendency to sin, we will be purified in purgatory until the tendency to sin is gone. This is required because their can be no sin in heaven…
If we die outside the state of grace, we will be condemned to hell. Remember, all we need to do to enter the state of grace is to ask - whether it be initially in baptism or subsequent to sin, in reconciliation - so condemnation results when we don’t desire to be with God enough to ask sacramentally…