Yes, you could use a LM317 as a voltage reference. It could do the whole job if you don't need high current.
One other possible problem, check what the allowable gate voltage is. The op-amp will drive the gate almost to the supply rails. I guess most are rated for around 20v max, but will turn full on with only 10v.