Hola Emanuel
Generally speaking, yes. We tend to omit the definite articles with de/a and use them [when necessary] with desde/hasta. But you could also say: "De las diez a las doce estuviste dormido" (From ten to twelve you were asleep) and that would also be correct (although less used)
Saludos
Inma