They may be spelled the same, but they don’t have to be. Words that have the same sound and same spelling are homonyms and may also be homophones or homographs.