Update Mask on Material?

I’ve barely worked with materials beyond the standard setting up of instanced ones and dynamic ones with Substance Designer.

But here’s my question:

Is it possible to update a material’s mask to basically poke holes in an image based on where a user clicks on it?

I’m thinking there might be a way but I’m not sure if it’s even possible because the mask is driven by a single image…