AHD confirms and notes that both are from PIE ank-. Interesting that one is through Greek, Latin and Old French, not coming into English until Middle English and the other has been with us since before the beginning.