If the ambient region is below 30C, then no. Just because the breaker can be used in a 40C environment doesn't mean you have to.
If the ambient region is at 40C and is large enough, than yes. If the entire assembly (breaker, enclosure, and a significant length of the conductor) is at 40C, then you apply the temperature adjustment factors at the bottom of table 310.16.
However, as I recall, there are length exceptions for short warm areas of conductors; but I don't remember the details. My 'off the cuff' is that if the breaker enclosure is at 40C (ambient for one breaker as caused by the other breakers) but the rest of the conductor is in a 30C ambient, then no adjustment of conductor ampacity is needed.
Just my HO.
-Jon