You can format an SD card using Windows, Mac, and Android devices, and likely your digital camera too.
The USB-C port being blocked on your phone or laptop can cause it to become inoperable and prevent you plugging cables in.