is there a better way to drop my voltage

hi mike

what is the absolute maximum voltage of a 4n25? im a bit confused, if thats the case that there is no max voltage on the input side then i dont need to drop the voltage (24v) just limit the current to the led?

would this be ok

thank you