No, you don't have to watch all the lectures to on a Udemy course to get certified. You can go through the topics for which you took the course and that will be all. However, it is highly recommended that you go through the each lecture just to refresh what you already know. The certification is always there, and you can get it anytime.