You do not need to learn theory to play the guitar; however, having some knowledge about musical theory will enlighten you about how music works.

How much you learn is a personal choice; you do not need to read volumes of text to at least get some understanding about the fundamentals of music.

It will make your musical journey with your guitar much more enjoyable.