Jen - welcome to Lct! The shore excursions (whether you book ahead or onboard) do have to be cancelled by a certain time My approach would be to prebook, then check with the tour desk on embarkation day so you know the specific cut-off times. This was true as of a year ago when we were on the PG. If others who have sailed more recently have different information, please jump in.
Cheers, Anne