It is derived from that meaning (ruler) but over time became less of a title and more of a last name used by Islamic people in areas like Afghanistan. Khan Academy is named for its founder, whose ancestry is from the Afghan region. The Mongol empire, where Khan was a title for rulers, did extend over the region of present day Afghanistan and the entire Middle East.