Aircraft celestial navigation was known as astronavigation. It used a device called a bubble sextant and as such didn't need a visible horizon. Shooting stars from a plane at altitude was easy as it was so stable. A far cry from the moving deck of a yacht. Star sights from a boat are generally done at sunset as there is a visible horizon and a star at the same time.
Been there, done that.