No, to be a District Magistrate, one has to serve as an IAS officer for 6 years, including 2 years of the training period and has to be at the top of the list of IAS officers.
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile