That's the theory. However, depending on which page of the PHP documentation you read, that may or may not work. Either magic quotes can't be disabled during runtime, or they can. I have yet to duplicate any of these problems locally to test for myself. And knowing how flaky PHP versions are, it's probably changed four or five times in the last four or five releases.
I hate PHP.