Of course you can. But you cannot exit not until your case is done. You need a valid visa in order for you to find work and be able to pay your debts.