Safe provided you:
Drink only bottled beverages, especially tap or pitcher water. Refuse ice cubes, salads or raw vegetables because of the water + hand hygeine.
Same for fruit without peel or ceviche. Most 4-star resorts are safe, however it isn't worth even a minute risk if you are pregnant. Good luck & enjoy the vacation.