Yes, MusikBot will disconnect automatically after a few minutes if left for a long time without running Minecraft.