

Yes, it will. The reason for dispersion of light into seven colors upon passing through a prism is solely due to the change in the medium of the travelling path of light, from air to glass. Thus, even if light is perpendicular, it will still disperse into seven colors as it passes through the glass medium.
