Using stoch_simul in OLG model

Hi,
I have been working on a OLG model with 3 generations and a stochastic shock to windfall gains (for all the agents).
I was wondering if it is correct to use the command stoch_simul under that approach. Specially given that each agent dies a period after being part of the old cohort.
I have been working on a OLG model with 3 generations and a stochastic shock to windfall gains (for all the agents).
I was wondering if it is correct to use the command stoch_simul under that approach. Specially given that each agent dies a period after being part of the old cohort.