Apple Music and gift cards
According to Apple, Apple music isn't available in Morocco, meaning that even is you use a gift card that you can't use it.

Other then that, you need to use a credit card to even use the 3 month free trial.

You can see the available countrys that Apple music is available in here.