If the plane is on autopilot, can the pilot leave the cockpit?
According to the laws of aviation, the pilot should remain in the cockpit at all times, regardless of whether the plane is on autopilot. In the event that the pilot must use the restroom or briefly leave the cockpit for some reason, they are only allowed to do so if another pilot is there to monitor the plane.
Do pilots have time to enjoy the destination before taking off again?
The answer generally depends on the pilot's layover time, but often, yes. Like the rest of the crew, pilots have the opportunity to explore the places they travel. If it's a one-way trip, pilots may even be able to spend the night!