Cocoa Beach is a city in Brevard County, Florida, United States. The population was 11,539 at the 2018 United States Census. It is part of the Palm Bay–Melbourne–Titusville, Florida Metropolitan Statistical Area.
They’re actually different, according to Google Maps. Cocoa is more inland, while Cocoa Beach appears to be out on a barrier island to the east.
"It is part of the Palm Bay–Melbourne–Titusville, Florida Metropolitan Statistical Area."