The circumstances dictate everything on this question.
On this forum and in news media I often see opinions and views with which I disagree and don't want to read... so I don't. I do not claim a right not to hear them.
In a school education system should a parent be able to protect his child from contrary information? Maybe...
In school I was excused religious education ( Church of England) because of our JW beliefs. I do not think any one view on religion, morals, sex etc should be taught as fact . In my view it is beneficial to kids only if it is taught in an even handed way , with respect shown for all viewpoints
If one view of say , LBGT issues is taught and students marked down if they don't repeat the establishment view, that would be wrong and the right to be excused tbe lesson is necessary