cut texture with script

with unity is possible to cut the texture by script? I mean. I take a picture with an Android device (in unity) and I want this picture to be applied to many cubes. It must be like a mosaic. And 'possible?

I think it’s possible

you have to modify the texture scale of your gameobject

     Vector2 size = new Vector2(10f, 10f);
        renderer.sharedMaterial.SetTextureScale("_MainTex", size);