Depends on the variety. Most of the US ones don’t even need the wasps but the Calimyrna does.
Store bought varieties of the common fig are likely a self-pollinating variety but the wild variety of the common fig, as well as most of the rest of the 800+ species of figs, are not self-pollinating