Spicy salsa?

I’m craving spicy salsa, but I’ve always heard pregnant women shouldn’t eat spicy food. Does anyone know why? Is it really bad to eat spicy things?