YOUR ANSWER IS CORRECT
John Adams (our 2nd President) was the father of John Quincy Adams (our 6th).  They were the only father/son relatives to hold the office of President until the election of George Bush, Jr.  Both Presidents served only one term before being defeated in their re-election attempt.