Is it possible to dynamically load a material into a scene using a script ?

Im currently working on a VR related 4th year project for college, I use 360 images and video to create my VR scenes. An additional feature I was looking at was adding some scalability to the project by dynamically loading in some assets when needed. I seen WWW can load in images but there is some manipulation required for these images and they also have to be converted into a cubemap/skybox Material.

Would it be possible to load in a skybox ready material at runtime ?

Generally the way this is handled in Unity is to have the Material in your game already, then replace its textures with the textures you load from WWW.