Consider the Dirichlet problem of the following form: Let $D$ be a bounded, connected open set in $R^d$ and $\partial D$ its boundary. Given any continuous function $f$ defined on the boundary $\partial D$, one needs to find a function $u$ which is continuous on $\bar{D }$, equal to $f$ on $\partial D$, and harmonic in $D$. I was reading some lecture notes on Brownian motion and there was a proof that if $D$ satisfies the cone condition, then the Dirichlet problem has a solution of the form $$u(x)=E_x[f(B_{\tau_D})],$$ where $$\tau_D=\inf\{t>0: Β_t \not \in D\}.$$ I think that in the case $d=2$, if $D$ is a Jordan Domain, then the Dirichlet problem always has a solution, even if $D$ does not satisfy the cone condition.
To see this, consider a conformal mapping $\phi$ from the unit disk $\Delta$ to $D$. From Caratheodory's theorem it extends continuously and injectively on $\bar{\Delta}$. Now $f\circ \phi$ is continuous on $\partial\Delta$ and thus has a harmonic extension $F$ on $D$. But then $F\circ \phi^{-1}$ solves the Dirichlet problem.
My question is the following: is $E_x[f(B_{\tau_D})]$ a solution to the Dirichlet problem in this case?