Modelling a regime shift of a parameter in dynare

No, Dynare does not support regime-switching DSGE models. Please have a look at Junior Maih’s RISE toolbox.