That is the generic rule, but you can always explain your situation to IRCC through a webform and they can provide you with solution most of the time.I seen someone in this forum who applied from New York for student permit after submitting everything moved back to India as his visa expired. He...