I have a question regarding a simple correlation of estimated rather than known values.

Let’s say I am interested in the correlation between A and B. Values for A and B were estimated instead of known (they have associated sampling error). Does this uncertainty influence the correlation? If so, how can I adjust it to account for the error of estimation?

Thanks