Hello shaksy Welcome to English Forums. Have you tried looking up these two words in a dictionary? That should be the first thing you do. Please come back if you don't understand.
Yes, you are correct. Many times the spelling of an English word is not the same as its spelling. I hear that some languages pronounce the words just as they are spelled. Is that the case with your first language?
I once read that spelling in English is a psychological matter. That is, English speakers get used to a word's spelling and don't try to understand
English is one of the older written languages. Many spellings are very old, and we say the words differently now. English spelling is not really phonetic. We read more by word shape than by sounds.