The objective of the Cuban missiles was to deter a US invasion of Cuba (cf. Bay of Pigs, Operation Northwoods), in that it was successful. I don't know the exact geopolitical benefit of a communist Cuba, but I expect it's been worth it to the USSR.
Thoughts similar to yours make me think that...