Welcome to HealthcareMagic forum.
Yes, hot and spicy food can cause inflammatory changes in the food pipe. These changes are responsible for sensation of some food stuck in the food pipe. The sensation however would resolve in a few days to a week.
So do not worry. Take soft and less spicy diet and wait for a few days. If symptoms persist for more than a week you need to get an endoscopy
done to rule out other possibilities.
Hope this answers your query.