Effects of diabetes

does diabetes affct mental ability to learn????? or its jst a creation of mind...