I’ve had a lot of spicy food during pregnancy, baby came out fine. I wouldn’t say acne/pimples but maybe milia seeds which went away on its own (normal and common in newborns).
Regardless, you can definitely eat spicy food but everything in moderation 😊.