Yes and no- indian food can be spicy but they use green chilli, not the red one.
Green chilli is spicy but, unlike red chilli, it is good for the stomach. You won’t get diarrhea from green chilli. Which doesn’t mean you’ll avoid diarrhea in India. Almost 80% of travelers do experience problems but mostly because water is polluted with bacteria and some food has bacteria as well- especially if it’s in contact with flies.