I did it, do I still need a lawyer?

Yes. Anytime you are accused or charged with a crime you need a lawyer. People can be acquitted by a jury even if they may have actually committed the crime. A good criminal defense attorney can successfully represent you in many different ways, including plea bargaining and sentence negotiation.