Sure, retribution for an offence. That's a fine definition.

Turning away a potential migrant, that's not retribution for an offence.