Rickcee. You are almost right, but not quite. Major Sir Gerry has the right idea.
This is a picture of Richie freting a major chord. He has the guitar tuned to open D. He is at the 5th fret. Playing a G chord. I think we can agree he is using his thumb.