Not necessarily. Gh can have be silent or sound like the letter f. G has a hard sound - go - a soft sound - giraffe - and can combine with letter like n to make the ng sound. They do sometimes have the same sound in words like ghost, but other than that they are not the same.