In theory it could, but that would require the lens to store the parameters for that function(which I don't believe existing lenses do). And additionally it would require a lens with a focus motor and a zoom motor (or even just feedback, which most don't have).