In a sentence, a noun can play the role of a subject, an indirect object, a direct object, a subject compliment, an object compliment, and appositive or adjective.
But note that sometimes appositives do not use the signal word " or." And be careful -- commas have many purposes in written texts and they do not always signal appositives.