Possible to use photoresistors as digital in?

Have thought of multiplexing the analog values with an analog switch ?