If the parent is keeping the child from school without homeschooling them then yes
But if the child is just skipping school then detention works. Also, have a team intervention approach to help the student and family deal with stresses and other factors inhibiting the attendance.