It's a good idea for electric guitarists; it's an even better idea for bass guitarists and acoustic guitarists. DI (direct injection, direct input—take your pick) boxes are a good idea because they protect your signal from noisy outside interference like that nasty hum you otherwise can't seem to get rid of.