This appears to be true. As part of its “Defend the Homeland” campaign, the Department of Homeland Security (DHS) has intensified hiring efforts, including the use of advertising packages. Euronews reports that these ads refer to “dangerous illegals” and urge U.S. residents to become ICE agents, using phrases such as “Fulfill your mission to protect America.”
While coverage like this Politico report has documented the DHS’s broader increase in advertising and recruitment—particularly on online platforms such as YouTube—it does not mention Spotify specifically. However, several prominent music news outlets, including Rolling Stone, Consequence of Sound, and AV Club, have reported on ICE recruitment ads appearing on Spotify.
A Spotify spokesperson confirmed to Snopes that “at least one ICE recruitment advertisement appeared on the platform” and that the content doesn't violate Spotify's advertising policies. She instead suggests that disgruntled users should 'dislike' the ad to adjust their ad preferences. Snopes also spoke with Tricia McLaughlin, assistant DHS secretary, who issued a statement acknowledging the agency’s recruitment campaign.
Examples of the ads can be viewed [here] and [here].