Depends. If they are the only providers, you might want to avoid it. Take OSM - you could use the API with leaflet and their server, but if they can no longer afford the hosting costs and close the service, you could download a copy of the database yourself, and host your own copy.
As a rule of thumb, try to use something standardized, with more than one implementations.