Yes, figs are visited by wasps in the region figs are native to, but only in the same way that flowers are visited by bees. This picture is very much not what that would look like. This is, I'm certain, literally just a wasp nest.
Edit: I stand corrected, fig wasps are born and typically die in their figs. Fortunately, that still looks nothing like this picture because they are super tiny.
Well, TIL. Thanks for the correction.