It can be done, but as others have mentioned, the cure might be worse than the disease. Moving the traveler forward will mean moving the attachement points on the boom forward as well. Three things happen because of this. First, because the sheet is attached closer to the pivot point of the gooseneck, you need more power to trim in the sail. If the sheet was attached 12 feet from the gooseneck and you move it to six feet from the gooseneck, to get it forward of the main hatch, you will need twice as many runs of tackle to trim the sail than before. If it was 4:1, it will now need 8:1. All those pullies result in added friction, so you may need a bigger winch to trim the sail. You will also now have twice as much mainsheet spaghetti in the cockpit than before. Second, moving the sheet on the boom can create point loading on the boom - you have doubled the pressure on it by moving it closer to the gooseneck - so the blocks on the boom need to be spread out to avoid this. This increases the length of line needed for the sheet, by the way. Third, the traveler that you have moved to the cabin top is also being pulled up by the sail with twice the force that was in its original place. Your cabin top may need reinforcing to keep it from ripping off, or from pulling the entire cabin off the deck. People do move their travelers off the bridge deck and onto the cabin top, but they take these issues into account when they do.