Under most circumstances, this would be an earned run, provided he eventually scores.
However, there are a few cases where it would not be an earned run. One example would be if the inning is extended by an error, no runs scored after that error are earned.
Chat with our AI personalities
If a pitcher walks a batter with the base loaded -- thus permitting a run to score -- that run is counted as "earned" run, just as if the batter had gotten a hit.
You would have to wait until the inning is over to determine that. If a following play would have scored the runner from 3B, it would be an earned run.