I think...but I could be wrong...just make sure you are fitting road direct mount to road cranks and mtb direct mount to mtb cranks and all will be well.
You might get weirdness mixing road and mtb because the MTB ones tend to have an offset to counter the wider crank arm width.
Do SRAM 1x and 22 cranks have the same chain line if you remove the spider and fit a direct mount 1x ring?