Always check with your surgeon for specific pre or post operative instructions. There is no absolute rule on spicy food, alcohol, etc.
I only require you to stop drinking two days before a hair transplant. Spicy foods should not be a problem