YES. YOU CAN APPLY FOR THE LICENCE . HOWEVER THE VALIDITY OF YOUR LICENCE WILL BE EXPIRED ALONG WITH  YOUR  VIST VISA VALIDITY.