Are you getting mixed up with a Homonym?
A homophone is a word that is pronounced the same as another word but differs in meaning. The words may be spelled the same, such as rose (flower) and rose (past tense of "rise"), or differently, such as carat, caret, and carrot, or to, two, and too.
Homonyms are words that are both spelled and pronounced the same, but have different meanings.