A quantity has dimensions. Is it must that it has units also?

Yes, because it is not possible that a quantity having dimensions has no unit.