Yes, Tangier is just a short ferry ride away from the southern coast of Spain, making it possible to visit the city on a day trip. However, to fully explore and experience Tangier, it's recommended to stay at least a couple of days.