Does aggregation execution order matter?

If I'm using nested aggregation for example Terms aggregation with a histogram on each term, does it differ in performance if I set the histogram as the outside aggregation & the Terms one inside?