Yes, you can ride the Haunted Mansion if you are in the Magic Kingdom for extended evening theme park hours. These hours are available if you are staying at a Deluxe Disney Resort or if you are attending a special ticketed event.