My first thought is to say, why not? But then there are spells like....forgot the name...spectral hand? The 2nd level one that creates a hand to deliver touch attacks. It gets a bonus to touch attacks, so would it apply to a ray delivered as a touch attack?