Prinapple while pregnant

Haylie
Is it safe I just ate a lot of it but my friend told me it was bad to eat while pregw I'm 9weeks