Sudafed while pregnant?


I’m 5 weeks today. I’ve been congested and last week my OB told my I could take Sudafed. I’ve been taking it for about 4 days, and one of the articles on my other <a href="">pregnancy app</a> was about the medicines you can and cannot take while pregnant. Sudafed was on the “do not take” list. So....have you taken this while pregnant? I know I should listen to my doctor but now I’m nervous!