Can a pc Necromancer maintain undead with Animate Dead that were raised with Danse Macabre?

Since the casting time of Danse Macabre is more favourable to a higher level Necromancer, it would be more efficient to raise undead with Dance Macabre and then maintain them with Animate Dead, is this rules legal?

Danse MacBre is a 5th level spell with casting time of 1 action; raises undead (Up to 5 Zombies or Skeletons)

Animate Dead is a 3rd level spell with casting time of 1 minute; maintains raised undead (Raising 1 Zombie or Skeleton, or maintaining up to 4 Zombies or Skeletons).