Short answer: yes, cream cheese is generally considered safe in pregnancy, as long as it's made from pasteurized milk — and nearly all supermarket cream cheese is. This reflects guidance informed by the CDC, FDA, NHS, and ACOG, which treat pasteurized cheeses as low-risk. The main thing to check is the label.
Cream cheese is a smooth, spreadable cheese made from milk and cream. Although it feels soft, it is not a mold-ripened soft cheese like brie or camembert. Standard supermarket cream cheese is made from pasteurized milk, which is the key detail for pregnancy safety.
The concern with cheese in pregnancy is Listeria, a bacterium that the CDC notes pregnant people are far more likely to catch, and which can harm the baby. Pasteurization heats milk enough to kill Listeria and other harmful bacteria. Because pasteurized cream cheese is low-risk, the CDC, FDA, NHS, and ACOG all treat pasteurized cheeses as safe to eat.
Check the label says 'pasteurized' and avoid raw-milk or artisanal versions where the milk source is unclear. Keep it refrigerated, follow the use-by date, and discard anything left out or past date. Note that the NHS advises avoiding mold-ripened soft cheeses (like brie) and soft blue cheeses unless cooked — but plain cream cheese is not in that group.