It depends. Every no deposit bonus comes with a list of eligible games. All no deposit bonuses allow you to play slot games, however you may be limited to a single slot game, or a small handful of slot games.
Please beware that high RTP and high volatility slots tend to be excluded from no deposit bonus offers.