Displaying "My Appointments" conditionally

As the title states...

Is it possible to use the shortcode and to display the "My Appointments" section only when you actually have an appointment?