Yes, of course! Actually, you are not only allowed, but you are advised to. To be clear, there are canteens or restaurants on the ferries, where you can find snacks and drinks. Tip: If you don't want to spend your whole vacation budget on board, then you should probably bring homemade snacks.