Perfect pitch is a very rare ability. Perfect pitch cannot be developed. "Relative pitch" can be, however, and is a reliable way to tune your guitar. A great number of musicians who claim to have perfect pitch probably have relative pitch but lie about it. What you tell people is your business, but you do not, and never will, have perfect pitch.
To develop relative pitch, take a song you can absolutely imagine in your head. It has to be one you know VERY well, because it is possible to imagine a song off-pitch. Once you have your very familiar song, you figure out what one of the notes are. From there, you can figure out any note, relative to the note you successfully imagined.
My song is "Fake Plastic Trees" by Radiohead. I know that 1st chord is an A. So I can always tune my A string perfectly and go from there.
I have been playing music long enough to where I can imagine ANY note relative to that A. If you are not to this point yet, that's ok. For now you can have several songs to do this trick. I had several songs when I was a beginner. I had one for G, D, E... But now, that A is all I need. That song has tuned my guitar thousands of times. Thank you Thom Yorke.
In fact, to continue to use my song as an example, I could figure out much more than an A if I needed to. I know the next chord is an F sharp, and the next is a D.
The quality of your guitar will not affect your ability to learn relative pitch. Even the instrument is irrelevant. I could hear an engine running and calculate the pitch with the ability I have developed, and so can you with practice.