Only very very very very marginally. Ultimately if they don’t get mined this block that just means there’s more of them (and fewer normal transactions) for the next miner that isn’t filtering. Over the course of a few blocks it averages out.
It only actually works if you have more miners blocking spam than the portion of spam transactions.
