Need clarification in the event sourcing process of storing workflow history

Suppose we have a workflow code like this,

public void transfer(Account from, Account to, String refId, Amount amount){

account.withdraw(from, amount, refId);
System.out.println("Hello world");;
account.deposit(to, amount, refId)

}

Suppose the workflow started and withdraw activity is successful, the workflow history is updated and the log statement also is printed, but just before it goes to next activity something crashes.

When we resume this workflow in other container, do we print the log statement again ?
I am guessing YES, but just need your confirmation.

Yes, it will be printed as workflow uses replay to recover. We recommend using replay aware logger to avoid duplicated log entries.

Thanks maxim, I just put that log to confirm that only temporal related activities are replayed, and there is no way you can actually restart from the exact point in code.