Yes - this works fine - usually when you install Xcode 4, if you already have an older version of Xcode installed, it moves to /Developer-old, and the new Xcode 4 installation goes to /Developer. Many people, like me, do this so that they can install Xcode 3.x and Xcode 4.x at the same time.
source
share