Yes it is ok to take your luggage with you on the ferry from Hvar to Dubrovnik; there is plenty of space for luggage on all ferries; most of people travel with luggage it is not like day trip or excursion ferry it is proper public transport ferry line.