Nope. BuildCraft Quarries are "dumb" machines, in that they won't filter blocks in that regard. If you are looking to do that, you'll want a turtle. But, in reality, a turtle will likely be fairly slow (you'll want it to dig out EVERY block, or to record the position of the iridium ore when it finds one) versus a quarry, which will likely end up meaning you get more ore from the quarry versus silktouching it.
yeah i am not talented at coding so this will have to be .
could be cool to have "advanced quarries " that you can filter what it should mine or insert upgrades in it ...