You don't need to add the path if you're going to write programs in Codeblocks. But if you want to use gcc independently with a text editor (lovely notepad, notepad++ etc)
copy the path/of your codeblocks/installation/MingW/bin
And paste it in PATH in system environment variables. Figure it out yourself (hint: yourself+=google)