If you have a HHN ticket and a day ticket, you can stay in the park after 5:30 and wait until the haunted houses are open.
If you exit the park and come back between 5:30 and 7:00, you have to wait in line at the turnsiles until the park re-opens at around 7 pm.