Yes, it is safe to travel by ferry from Morocco to Spain. Many people use one of the daily departures.