Lead Patterns and Soloing Scales

How essential is the major scale? Could I not get by soloing with just the pentatonic scale?