It’s pretty difficult to play the guitar if you can’t tell one note from another. This is what is called developing your “ear”. This skill helps you recognize when you are playing the correct note(s), when notes are higher or lower in pitch than others. And, of course, developing your ear helps you determine when instruments are in or out of tune.
Here’s a more extensive exercise to help you recognize a sequence of correct notes.