This is from the site which explains who cannot apply
(2) Criminal and related grounds.-
(A) Conviction of certain crimes.-
(i) In general.-Except as provided in clause (ii), any alien convicted of, or who admits having committed, or who admits committing acts which constitute the essential elements of-
(I) a crime involving moral turpitude (other than a purely political offense or an attempt or conspiracy to commit such a crime), or
(II) a violation of (or a conspiracy or attempt to violate) any law or regulation of a State, the United States, or a foreign country relating to a controlled substance (as defined in section 102 of the Controlled Substances Act (21 U.S.C. 802)), is inadmissible.
(ii) Exception.-Clause (i)(I) shall not apply to an alien who committed only one crime if-
(I) the crime was committed when the alien was under 18 years of age, and the crime was committed (and the alien released from any confinement to a prison or correctional institution imposed for the crime) more than 5 years before the date of application for a visa or other documentation and the date of application for admission to the United States, or
(II) the maximum penalty possible for the crime of which the alien was convicted (or which the alien admits having committed or of which the acts that the alien admits having committed constituted the essential elements) did not exceed imprisonment for one year and, if the alien was convicted of such crime, the alien was not sentenced to a term of imprisonment in excess of 6 months (regardless of the extent to which the sentence was ultimately executed).
(B) Multiple criminal convictions.-Any alien convicted of 2 or more offenses (other than purely political offenses), regardless of whether the conviction was in a single trial or whether the offenses arose from a single scheme of misconduct and regardless of whether the offenses involved moral turpitude, for which the aggregate sentences to confinement were 5 years or more is inadmissible.
(C) CONTROLLED SUBSTANCE TRAFFICKERS- Any alien who the consular officer or the Attorney General knows or has reason to believe--
(i) is or has been an illicit trafficker in any controlled substance or in any listed chemical (as defined in section 102 of the Controlled Substances Act (21 U.S.C. 802)), or is or has been a knowing aider, abettor, assister, conspirator, or colluder with others in the illicit trafficking in any such controlled or listed substance or chemical, or endeavored to do so; or
(ii) is the spouse, son, or daughter of an alien inadmissible under clause (i), has, within the previous 5 years, obtained any financial or other benefit from the illicit activity of that alien, and knew or reasonably should have known that the financial or other benefit was the product of such illicit activity, is inadmissible.
(D) Prostitution and commercialized vice.-Any alien who-
(i) is coming to the United States solely, principally, or incidentally to engage in prostitution, or has engaged in prostitution within 10 years of the date of application for a visa, admission, or adjustment of status,
(ii) directly or indirectly procures or attempts to procure, or (within 10 years of the date of application for a visa, admission, or adjustment of status) procured or attempted to procure or to import, prostitutes or persons for the purpose of prostitution, or receives or (within such 10- year period) received, in whole or in part, the proceeds of prostitution, or
(iii) is coming to the United States to engage in any other unlawful commercialized vice, whether or not related to prostitution, is inadmissible.
hope it helps