Anisocoria can sometimes occur as a result of neurological conditions, including stroke. However, it is just one of many possible symptoms, and additional signs would typically be present in cases of stroke.