Yes they can. BUT...
I like to point out...
that Dwarf shrimp need to be in very clean water with low particulate, since it can lead to Ammonia, Nitrite, Nitrate spikes and death for the little shrimp.
Bamboo shrimp need to have a high amount of particulates in the water because that is what they feed with their cute little filters.
Bamboo shrimp are perfect imo for a fry tank because of the frequent feedings of tiny particles of food, like Hikari First Bites. They also need an established tank like 4-6 months and a stable tank as well with good BB!.
To me the two types of shrimp should be kept in opposite parameters of each other.
The Bamboo shrimp need to have pretty clean water parameters but get the food they need to thrive. So water changes are key. My oldest Bamboo shrimp was about 3 years old when it passed.