This is true. But it also works another way: after pirating it, they might decide they like it enough to buy it anyway, which is an increase in sales.
There are a lot of musicians that encourage pirating their music, simply because it means more listeners than they'd get otherwise, and more listeners means more potential buyers.