Pairing a Nintendo Switch dock with charging a phone instead typically comes down to physical connector compatibility first, then whether both sides share a fast-charging or power standard for anything beyond basic charging speed.
When the connector fits, it’s almost always safe to try — the main question is speed and convenience, not risk, for any combination using standardized USB or common household power connections.