Yes, you can set the length of the number from admin for order, shipment, invoice and credit memo.
For example, you can set length is 5 then your order number will be 00001.