RBC model with two shocks

I need to run a model with two shocks.
Is it correct to specify the structure as follows?

shocks;
var e_a e_g;
stderr e_a 0.009;
stderr e_g 0.009;
end;

Thank you!

It depends. You are correctly specifying two independent, uncorrelated shocks entering your model. The first line inside of the shocks block is actually redundant.