Cape Cod is a peninsula in Massachusetts, the state directly north of Rhode Island. It is not part of Rhode Island.