Is it okay to eat spicy things during pregnancy?

One doctor said its okay, another one said its not so I'm kinda confused.
What do you think?