wh words in English make question in English... what, where, when, etc similarly hindi has words when used in the starting of a sentence makes it a question. क्या what क्यों why कैसे how कब when कहाँ where कितना how much// how many and there conjugation with masculin, feminine and neutral too...
I would argue, "yes".
Wiktionary gives four definitions for जाना. The first is "to go, leave, depart". https://en.wiktionary.org/wiki/%E0%A4%9C%E0%A4%BE%E0%A4%A8%E0%A4%BE
And GT turned "were you leaving" into "क्या आप जा रहे थे?"