Yes, of course! You must inform the HR of your company immediately if you get pregnant. This is good to protect both mother and the child as some activities are not allowed, and the employer cannot ask you to perform those activities.