In theory, yes. However, it may be worthwhile to connect the cable, and then reboot the computer with the cable plugged in. Sometimes the video hardware doesn't tell the OS that there is something plugged in unless it is plugged in at boot. Thats how my laptop is, anyway.
Bookmarks