I went on Code::Blocks and it said I need to re- install it for it to work because something got messed up. I have no problem re-installing it, but the only thing I'm worried about is that I'll lose all my programs. If I re-install it will I lose them?
You shouldn't lose them; but play safe. If your programs are in a subdirectory under the CodeBlocks installation directory, it might be prudent to move them elsewhere. In any case, keeping copies of your source code in a second directory is inexpensive.
If you have put a lot of effort into it, it is valuable, and you should be taking regular backups to another disk drive or removable media. Disk drives do fail once in a while.