Yes, as long as those specs conform to international standards; especially those regarding security.
If flying from a stationary flag-pole, die Fahne and if flying from a vehicle or a ship, die Flagge.
German ship Totila happened in 1944.
German ship Petrella happened in 1944.
Ship = Schiff
German naval ship Mühlhausen was created in 1967.
German naval ship Mühlhausen ended in 2007.
golf of mexico
German weather ship Lauenburg was created in 1940-11.
The immigration ship
German training ship Bremse was created on 1933-07-07.
There were several contributing factors. One was the sinking of the ocean liner Lusitania by German submarines, and the deaths of Americans on board the ship. The other was the "Zimmerman Telegram", where Germany sent a message to Mexico seeking to have Mexico attack the US. Mexico would receive financial support from Germany, and be given Texas, Arizona, and New Mexico.
The Diego Candle ship was the ship in which Hernando Cortez sailed to Mexico.