You cannot be hundred percent perfect at workplace. You will be lagging in some areas and punishment could be melted. There's absolutely nothing wrong in receiving punishment at work places.
I think that it is a very common thing to get offended by something that your boss might say and this is something many people always keep in mind when they join the workforce.