Can you eat cheese tortellini that you grab off the shelf in the store not refrigerator

Jennifer • Boy mom 👦🏻🧑🏻‍🦲with three little 👼🏻👼🏻👼🏻

Some brands you can keep on the shelf and doesn’t need to be refrigerated. Is that safe for a pregnant women? I am looking online and can’t find any information if it’s safe or not.