Yes, that would be necessary, if you’ve previously called .eval(), e.g. in a validation loop.
However, I would add these lines nevertheless to avoid mistakes just in case some other code part calls model.eval().