Generally speaking, a court of law assess penalties based on the extent of the injury. So it is not relevant how the person is being attacked.
However, attacking from behind will generally associate with a higher degree of injury. So even they are not related in theory, they are practical related.