generate and alter texture in game with arrays

Sorry, bit of a noob question. Can I capture game data in an array and then use that to define the pixels of a texture (in blueprints)? Eg. To create a picture from an array of numerical data that was generated during the game? (and the opposite? Texture to array)