Uh, yes it is. Maybe if you’re imprisoned illegally (kidnapping or by kangaroo court) but in the general case—in a democracy with actual courts, it’s wrong.
You think the cartel bosses that escaped from Mexico’s prisons were not morally and ethically wrong on multiple levels? Just because there’s also some corruption in the gov? Or because the prisons aren’t great. That’s unreasonable