Question: do dynamax dens count as caves?
Answer: Yes, raids count as being in caves, so they work for Dusk Balls regardless of the time of day.