I've never actually done this, but it seems that this varies from cruise to cruise. I think it is up to the Customs and Immigration officials, as opposed to the cruise line.
If you can't stay on board, you might consider taking a cab over to the Kennedy Space Center for a few hours. It's close by and pretty cool to see.