in an abstract, “if everything were perfect” sort of sense.
In an ideal world, anyone who is capable of learning the skills/information taught in a class should be able to get a school transcript with a passing grade in that class, if they choose to put in the time to learn those skills and information.
If the material being taught is not beyond a person’s grasp, but the format of the class makes it prohibitively difficult for them to learn the material or complete the assignments then they should (again, ideally) be able to get accommodations or an equivalent class taught in a different way.
A person might be able to do all the assignments for a class, but not be able to physically attend the class every day because of pain or fatigue issues. They might be able to do an online class instead.
A person might be able to do school assignments sometimes, but not always on a regular schedule, because of symptoms that occasionally flare up and then improve. They might still be able to finish all the assignments for a class, if allowed to turn them in late.
A person might be able to learn the material for a class, but not able to complete a particular type of assignment. Someone who can’t give a speech might be able to write an essay instead, and if public speaking isn’t the topic of the class, an essay could be considered equivalent to a spoken presentation.