Drivers test

I lost my permit and my drivers test is in three days. I was wondering if I can go get a replacement of my permit the DAY OF my test ?