Yes. Pupils dilate in response to emotions, which include anxiety and arousal. They also dilate with any type of mental effort. This is because mental effort and emotions activate a part of the nervous system that controls the iris dilator muscle.