What you did is called irresponsible. Did someone force you to go out drinking and force you to drink till you felt like shit the next morning? Sick days are for when you are really sick and it is not alcohol induced. You knew you had to work the next day so if you were planning on going to go out and getting all shitfaced you should have asked off for the day after. IMO what you did shows your boss that you really don’t care that much about your job. So to answer your question yes you were wrong.