Can you use two IR transistors and and IR LED to pan a turret?

THat's the same amount of work as building the whole thing. I'd like to know so that I can skip that and use a camera if the range isn't going to be good.