No! In fact, it's best that you're NOT online while doing a
defrag. Anytime defrag hits a part of a hard drive where the
information is changing, defrag restarts doing that portion of the
drive. While on the Internet, your PC is constantly sending and
receiving files and changing what's on the hard drive. Your defrag
will take a lot longer.