Yes, it is perfectly fine for any of our devices to remain plugged in and connected to your Mac (or iOS device). There is no harm in the device remaining powered up while you’re not using it.