Referring to great-grandparents
The answer is yes.

曾 is for paternal paternal ancestors, 曾外 for paternal maternal ancestors, 外曾 for maternal paternal ancestors, and 外曾外 for maternal maternal ancestors.