Education and Training Act 2020, s 80(3)
Yes, in some situations. You or your parent or guardian can ask for you to be allowed to attend school for some reasons. This could be to sit exams, fulfil a course requirement, or go to counselling, for example. The principal has to agree if your request is reasonable.
Once the principal agrees to this, you have to go to school at the relevant times otherwise you might be considered truant (“wagging school”).