Is there a way to do programmatic render targets for lookups in Code and Material

Using render target is the way to go.
The render target produces a texture file…from which you can access in material editor like any other texture…you can sample it just like you would…as well as input it for use in custom HLSL nodes if that is where you are headed.