If you're set on automatic upgrade for both types of upgrades, probably not. Dependent to a certain extent on trade strategies, market conditions, and corporation type.
I've seen folks upgrade one side or the other to max, and then start on the other.
I've also seen folks vary when they order upgrades (like the corp is making a profit, order both, wait until a return to profitability and repeat.)
I'd go off automatic both sides, and find a strategy that works a bit better for your bottom line and individual playing style.
Hope that helps,
M. Ney