No, you must be in the UK on a Student visa or Tier 4 (General) Student visa when you apply for the Graduate visa.