Technically yes of course but the reality is highly subjective.
For me, EDM is any heavily compressed synth led euphoric music, be it D&B, dubstep, house, drumstep or whatever aimed at the US market (I think that's where the term EDM comes from..) with a commercial purpose in mind, whereas most D&B doesn't fall into this category.
I'd say some artists do crossover - probably for commercial reasons - but best not to pigeonhole anyone just because they might have made an EDM track at some point in the past..