They have, but under certain conditions.
In the resolution of the CMU "On Amendments to the Rules for Crossing the State Border by Citizens of Ukraine" during martial law, citizens of draft age, who are seafarers, may cross the border in cases where they are on their way to:
work in the crews of sea vessels or inland navigation vessels;
passing practical training for such work.
But belonging to the profession of a sailor does not allow you to go abroad without any other preparatory actions. It is necessary to obtain permission to travel abroad in accordance with the procedure established by law.