Very likely. In my country, schools are rated by % of kids getting into universities.
Teachers are also punished for kids who give a try at non-mandatory exams, but fail. Those who wants to get it into university damn sure work hard. Meanwhile people who don't aim for university and take those exams for the lulz are likely to damage teacher's statistics.
No less stupid than rating schools by acceptance to universities. Gap-year and trade schools should be encourage whenever they make sense. But the rating does not incentivise looking out for kids interests.
Another fun fact - one of the points to certify a school as "gymnasium" is attendance. My school was certifying for that status during my last year. One of the vice-principals was nicknamed "12th graders attendance" since her office door was opening directly to cafeteria/lounge area and her #1 job was to make sure we attend as many classes as possible :)
In my high school/gymnasium students needed to bring a signed excuse from parents if they missed a class -- even if they were already 18! -- and too many absences would automatically disqualify the course even if you had a good reason, such as being sick. No overseer really needed for persuading students to attend class.
We had to bring in the excuses too. But the harshest penalty was calling in parents once you reach certain threshold. Which may or may not work, depending on your parents attitude. But as long as you skip a class or two a month, there was next to no consequences. Aside from explaining absent marks in your papers to your parents, of course. Which may or may not be easy to remove. Although forging parents' signature may be even easier.
No amount of absence would invalidate the course. But you if miss a test/quiz/project/etc, you automatically get 1 (out of 10). If you bring in a good excuse - of course you can re-do it at later date. If annual average drops bellow 3.5, school jury decides wether you can transfer to next year or not. In final year, < 3.5 would prevent you from taking that specific exam (which may give bonus points at your chosen university). If that exam is mandatory, then you have to repeat the course next year or drop out...
Teachers are also punished for kids who give a try at non-mandatory exams, but fail. Those who wants to get it into university damn sure work hard. Meanwhile people who don't aim for university and take those exams for the lulz are likely to damage teacher's statistics.