Although it's likely to be perfectly safe to eat when pregnant, you're far better off eating halloumi cooked to ensure any bacteria has been killed off.