This answer is yes and no so let me explain. The goal is to be able to play guitar without looking at your hands. There are several reasons why you will want to learn to play guitar with out looking but lets begin with when to look.
The time to look at your hands
The time to look at your hands is when you are first learning simply to ensure your technique is correct. Look at your hands as you place fingers on the neck, learn to pick, strum etc but then work on repeating the process without looking each time checking to see how you went and making corrections. You can try practicing in front of a mirror and then try videoing yourself to analyze where you need to adjust.
Why your goal is to play without looking
Firstly on the guitar you are coordinating between two hands and relying on your eyes will slow you down considerably. Every chord change and every note would require you to be checking each hand. The second reason and equally important is you will want to feel and listen to what you are playing and that is best done using your ears not your eyes. A third reason is that hopefully your goal is to play with other musicians and for an audience. You therefore want to keep your eyes available for making eye contact with your band members and your audience. A good way to learn to play guitar without looking at your eyes is to get your teacher to guide you. Eg. Try playing a chord without looking at your fingers and get your teacher to give you feedback as you go.
A forth good reason is reading music. To be a good reader you can't be constantly moving your eyes back to your hands.
The G4 GUITAR METHOD.
For a structured proven method of learning guitar visit www.g4guitarmethod.com