Yep,

This is assuming that the rolls are uniformly distributed and not pseudo random or cryptographically random.

2d6 on average deals (6+1)/2 * 2 = 7 damage
1d12 on average deals (12+1)/2 = 6.5 damage