Yes they can carry weapons at sea but many of the ports will not allow them.
Private security with their own arms is another answer.