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

Spain to Return Rescued Migrants to Morocco
A boat carrying irregular migrants
Safaa Kasraoui is a journalist at Morocco World News.