In your situation, yes (see Cyril's answer). However, beware of the following situation :
enum ABC { A, B, C = 5, D, E, F = 4, G, H };
The compiler will not avoid collisions with previously used values โโand will not try to make each value larger than all previous values. In this case, G will be greater than F, but not C, D or E.
source share