Nope, that will not work. Because the outcome is not the same, and the scaling is not linear.
There are many ways to get a measure, but the one suggested by Wooldridge is to calculate the square correlation af $y$ (in levels) and the fitted value $\hat{y}$ obtained from the regression - after a back transformation.
Now the question is how to obtain a prediction when $\log(y)$ is the dependent variable. Wooldridge suggests (but there are many ways to do this):
Obtain the fitted values from $\log(y)$ on $x_1, x_2, ... , x_n$, as well as the residuals $u_i$.
Calculate: $a_0 = n^{-1} \sum_{i=1}^n \exp(u_i)$
Then for each $y_i$ calculate: $\hat{y}_i = a_0 \cdot \exp(\widehat{\log(y)})$
Now you can calculate an $R^2$ which is comparable.