Planners ojective function for optimal fiscal policy

Given the following Ramsey planner’s problem for optimal fiscal policy:
Screenshot from 2021-07-22 13-49-19
Can I set the planner’s objective function in dynare as follows:

> planner_objective(C^(1-sigma)/(1-sigma) - L^(1+eta)/1+eta));

And because I do not introduce any new variables in the planner’s problem, I guess I would not change any part of the model block I used for stoch_simul, right?