Is ham ok to eat while pregnant

Heidi.jowett • 24 years young pregnant with my first I'm pommie (English) been in Australia 6 years :)
Ok I am not sure about this but I have eaten it and now I'm not sure 
I get ham from the deli at the super market for lunch with sandwiches 
Is it safe?? Abit worried now