You can take a ferry to both islands from Cape Cod. There are also airports on both islands.