Need clarity on material textures

In the .material files, you can define multiple textures from 0 to 1 to … is it possible to access these textures from within the shader program? Or are they only meant for use within the render script?