Yes, the judge can order you to pay restitution even if you do not have a job.  Yes, if you fail to make your payments, he can lock you up.  Borrow the money, or sell something you own to cover the restitution.