Yes, you can. Are you trying to use it on a project or just a single file? It'll only work on a project.
Seriously, it's not hard to see that it has a debugger. If you Google "codeblocks debugger", the first result gives you a guide on how to use it. Google is your friend; don't go jumping to stupid conclusions before you even do a cursory search for it.
First of all, like many before me said, Code::Blocks ITSELF is an IDE, so it doesn't have a compiler/debugger, HOWEVER there is a version of code::blocks that you can download which includes both a compiler and a debugger (MingW and GCC).
Second, if it doesn't compile with your compiler, this is the solution.
Go to file > save file as ; there you save your work as nameofproject.CPP . DO NOT forget the .cpp . It should work now.
And don't act as if you know everything while you're asking for help.