Sure there is.
As an example, let's say there's a positive correlation between the dose of some antidepressant and the probability of suicide. There could be a confounding variable with respect to the severity of depression in those samples such that people with more severe depression are more likely to take larger doses and more likely to commit suicide. The original correlation may not necessarily be between the dose of the antidepressant and the probability of suicide, but rather the severity of the depression and the probability of suicide. In other words, the correlation could be a correlation of the wrong thing because you didn't control for depression severity.
It does not matter only for causality, but also for correlation. In both cases, it's important to control for confounding variables so that you're measuring and analyzing the actual variable(s) that you're trying to, not some other variable(s) (i.e., confounding) indirectly. Otherwise, it may no longer be a relationship, whether causal or correlative, of the thing you think it is, but of some other thing.