Assume for a moment that death is akin to snuffing out a candle - once your bodily functions cease, you are no more. Will you behave yourself prior to that event, or not?
You mean, will I behave virtuously or not?
That depends on the concept virtue, i.e. understand its origin and application. Again, you'll need more details to get a good answer.