Can you take vitamin c tablets while pregnant??

I’m 9w and my immune system has been terrible. A lot of people say take vitamin c to strengthen your immune system but I was sure if it was safe to take while pregnant. Any suggestions?