Can I generate a texture based on data outside of the material on a single plane, for multiple types of textures?

It’s basically the title:

I have a big plane, 64x64. I have a GridManager that places 64x64 nodes for me to place stuff on. Now I want to be able to change tile-types to grass, sand or water per node.
Is it possible to generate a texture that generate a single texture for the entire plane, but in a sort of checkerboard manner but uses the correct texture on the correct spot?

Thanks in advance!

I went with seperate grid tiles, for now. This sped up my development. I’ll come back to this when I am a bit more experienced.