Yes, you can pay the appointment before visiting the clinic. You have to make sure that your appointment request is accepted by clinic. The prepaid icon will be displayed on the list of appointment.
Please read Appointment > section Prepaid Appointment in this online documentation to know more about pay the appointment before visiting the clinic.