Yes, but be careful with all those LEDs. Presumably your IR sensor is one of those reflective ones that sends out IR light and detects if any is bounced back off an object? Each one of those has an LED to generate the IR light, so 26 IR LEDs + 26 visible LEDs on your control panel takes a fair bit of power. Of course, not all the visible LEDs may be on at once but plan for the worst case.
With the control panel LEDs, rather than using one digital output per LED, you can make the setup a lot simpler if you use a MAX7219 to drive them. It can drive up to 64 LEDs and does all the hard work for you. And it's available in a nice big DIL package!