there are some great guitarists who know nuts about theory. Nuno Bettencourt for instance can't even read tab, i think he mentioned too that he doesn't know much theory..however theory and good knowledge of scales and the fretboard can make improvisation on the fly really much easier, make u more confident in soloing too..and definitely aids in songwriting or solo construction..