The agreements seems to work in favor of Spain more than Morocco.

Morocco Thwarts More Than 30,000 Irregular Migration Attempts in 2019
A boat carrying irregular migrants in the Mediterranean.
Safaa Kasraoui is a journalist at Morocco World News.