there are two possible answers:
1:if there is nothing after death and you disappear from existence then no because nothing matters to nothing and you are nothing.
2:you soul persists through death and every significant thing you did will matter to you and have an impact on what happens next...