I see tons of messages of people trying… sweating it out, and ultimately failing on learning to play a certain song…. over and over again.
Yes you can learn guitar that way, in the same way that you can learn to drive by crashing your way to figure it out.
I propose you help yourself out by learning the basics about guitar, notes, and fret board. That you get yourself somewhat comfortable with the awkwardness of having your fingers arranged a certain way.
Reading, writing, saying the notes and chords will help you remember!
Do a program or a lessons guide like I have and then give a shot at learning your favorite song. Your chances of success will be increased, and you won’t get as frustrated.