I accidentally punched a kid
Is that why you ended up in detention?
Yes. And I don't regret it
Even though you accidentally punched a kid, if you don't feel remorse, then there is a problem Punching someone causes pain, and if you put someone else in pain you should feel bad about it. It's better to talk things out than to "accidentally" punch someone.
I only felt bad because I got caught.
If this attitude pervades most of your interactions, you should seek counseling to explore why you want to adhere such destructive conflict resolution strategies. You will create a lot of unnecessary problems for yourself down the road in your current frame of mind.