Education and Training Act 2020, s 50(6)
It depends. Your parents or guardians can ask the principal to excuse you for religious or cultural reasons. But the principal needs to find out your views before they decide to excuse you.
You can tell the principal that you don’t want to be excused and share your views about attending or not attending the class. The principal needs to take this into account.