Should testing be done only after the build and execution phases are complete?

Should testing be done only after the build and execution phases are complete?

Testing should be done after the build and execution phases are totally completed. Fixing a defect in “maintenance” stage is more costly to fix.