Updating MacBook Pro to OSX EL Capitain
No. In fact, Xcode requires a (rather large and separate) download from the App Store. You're safe in upgrading.

Note that some command line utilities (development stuff) or package managers like Homebrew or MacPorts may behave strangely if you run an old Xcode on a new OS.