No, that is not correct. If you define a variable "temp" in any of your functions, this is totally valid. It just creates a new local variable with the name "temp". The only drawback is then that you can't access the global variable temp.
Always learn from history, to be sure you make the same mistakes again...