Yes, attempts are dealt with generally in section 24 of the code. Whenever there's an offence, there's also an applicable offence of attempting to commit that offence, and then there's case law that's built up around that. You have to take certain steps to effect your intent. It can't be just a matter of pure intent. But if you have the intent to commit an offence and you take steps to do so--and the case law is quite full in terms of what those steps are--then you have the offence of “attempt to commit” whatever offence you had the intent to commit and had taken steps to commit.
On March 11th, 2008. See this statement in context.