Can I apply Pearson's R² coefficient of determination to time series data?

Hi everyone, As part of my bachelor's thesis, I'm currently investigating two variables over time. I'm plotting them in a scatterplot as independent and dependent variables to describe the relationship between the two variables. Now I'm wondering whether I could also use the R² coefficient of determination, or whether this isn't the right approach. My…