How far away is Cape Cod Massachusetts from New York City?

According to Google.com/Maps; It is 300 miles or 5 and one half hours driving time from Cape Cod, Massachusetts to New York, NY.