Was Ivan the great the father of Ivan the terrible?

Grandfather actually.

Ivan III (Ivan the Great) did have a son named Ivan but he was called Ivan the Young and did not rule. Ivan the Great was succeeded by his eldest son Vasili III who was then succeeded by his son Ivan IV (the Terrible).