Is it ever possible to use Привет! when somebody leaves a place?

Or it only happens in cartoons?