Question: the night king must be a targaryen?
Answer: Simply put: no, the Night King is not a Targaryen, as poetic as it would have been for Jon / Aegon and Daenerys to have to face off against their many-greats-grandfather.