Technically, yes it will still work. However it's better to eliminate any possible error messages which I have done with the code I posted.