can I eat container hams? // 7w4d pregnant

Just wondering if I can eat hams that are in containers in grocerys. They aren't from the deli, their just packed in containers.
Is it safe for the baby?