You certainly could. The gear button on your toolbar in Codeblocks will build only and then you could check the logs yourself.
There are options you could use to force yourself to write warning-free programs.
First, with your project open, go to Project -> Build options...
This opens a dialogue box like the attached image below. With the "Compiler settings" tab and "Compiler Flags" tab highlighted, find the "Warnings".
There you can select the checkbox for
-pedantic-errors. As described, this will treat C/C++ warnings as errors.
In addition to this, first highlight the "Other compiler options" tab and then type
-Wfatal-errors. This will tell the compiler to stop compiling for the first error it sees, so you can tackle one problem at a time.
I actually recommend you do this when starting out. Since warnings do not stop the IDE from continuing the build phase, there is a tendency to believe they aren't as severe or can be ignored. Warnings are always a sign of a problem, though. No matter what you actually do, you should pay attention to them.
Lastly, if you want to look up elseweb for more information on the options, I recommend
reading this page.
HTH