Does temporal persists activity results in the workflow history?

I am storing the result of an activity in my workflow like this

        val journeyDetails = journeyDataActivity.getUserJourney(userId, programId)

Will temporal be able to get the previous value of the journeyDetails during workflow replay if the activity is not executed again during replay ?

Yes, activity results are recorded in the workflow history as a result field of ActivityTaskCompletedEvent.