Image swapping

Hello, guys,

I am new to unreal but I have some experience with C++ coding. I am thinking of having a folder of pngs and I want to swap them in the run time. I created a cube and paint the texture on the cube. Should I then load all the images in c++ and then find a way to texture them to the cube? Can any body give more details of how to do this?