‘Vastu’ & Karma of Ancestors

I have seen people talk about poorvajanma punya and that we should do good deeds so that the good karma helps our future generations...