Yes, you probably could replace the LDR with an optocoupler.
I don't see how that would work - what would be the light sensor?
Instead, he would need to put the optocoupler's LED in place of, or in series with, the original LED.
But, it's probably just as easy to use an LDR to control the new project.