"Yes, Allah عز و جل punishes and rewards both in this life and in the Hereafter the children for deeds committed by their parents, and punishes and rewards the parents for the deeds done by their children, BUT only if those children or parents have any share, even if is slight and stealth to our eyes, in the good or bad deeds done by the parents or children, respectively.
Actually, this is a general rule, the deeds someone does have direct and indirect effects into his and others' lives: الأعمال ما تقدم and الأعمال ما تأخر are defined according to this obvious issue. Any one is responsible for every effect that his/her deeds might have, upon his own life or others' lives. This responsibility can grow grave when the persons tied together are parents and children, specifically when parents are highly responsible to treat their children and children CAN have great roles in the decisions their parents may make.
So we have many Islamic TRUE stories that a man was in torture in his grave but then relaxed soon after his son did a good job in his personal life, even without sending its rewards to his father, the reason for that is clear, the father had a share in that good job by treating his son correctly in that respect, now the son doing that is like the father in his own life is doing that. This should grab your attention to the important role a teacher or tutor can have, they will be responsible for many good or bad deeds of what their students do to the end of their lives, and even to the end of lives of all those who were affected by them in a sense or another:
أَلَمْ تَرَ كَيْفَ ضَرَبَ اللَّـهُ مَثَلًا كَلِمَةً طَيِّبَةً كَشَجَرَةٍ طَيِّبَةٍ أَصْلُهَا ثَابِتٌ وَفَرْعُهَا فِي السَّمَاءِ / تُؤْتِي أُكُلَهَا كُلَّ حِينٍ بِإِذْنِ رَبِّهَا ۗ وَيَضْرِبُ اللَّـهُ الْأَمْثَالَ لِلنَّاسِ لَعَلَّهُمْ يَتَذَكَّرُونَ / وَمَثَلُ كَلِمَةٍ خَبِيثَةٍ كَشَجَرَةٍ خَبِيثَةٍ اجْتُثَّتْ مِن فَوْقِ الْأَرْضِ مَا لَهَا مِن قَرَارٍ / يُثَبِّتُ اللَّـهُ الَّذِينَ آمَنُوا بِالْقَوْلِ الثَّابِتِ فِي الْحَيَاةِ الدُّنْيَا وَفِي الْآخِرَةِ ۖ وَيُضِلُّ اللَّـهُ الظَّالِمِينَ ۚ وَيَفْعَلُ اللَّـهُ مَا يَشَاءُ
Seest thou not how Allah sets forth a parable? - A goodly word like a goodly tree, whose root is firmly fixed, and its branches (reach) to the heavens,- of its Lord. So Allah sets forth parables for men, in order that they may receive admonition. / It brings forth its fruit at all times, by the leave of its Lord. So Allah sets forth parables for men, in order that they may receive admonition. / And the parable of an evil Word is that of an evil tree: It is torn up by the root from the surface of the earth: it has no stability. / Allah will establish in strength those who believe, with the word that stands firm, in this world and in the Hereafter; but Allah will leave, to stray, those who do wrong: Allah doeth what He willeth. [Al-Ibrahim, 24-27]"
We also need to remember that ALLAH (SWT) forgives His rights, but not the rights of people. As long as that person doesn't forgive.
@Color_Less_Sky @MaarKhoor