IR range finders have their own IR emitter. They work by measuring the intensity of the reflected light. The more intense the light, the closer the reflecting surface. So yes they will be functional in darkness.
At a scrap yard, i imagine there are tonnes of different components to make use of. Windscreen wiper servos, LEDs, thermostats, fuses... the list goes on.