That is a very good question.
We usually do the medical exam during the training but if you think you have some health issues, we would recommend that you contact an aviation doctor upfront.
Here’s a link from the Federal Aviation Administration (FAA) to help you find an aviation doctor in your country: https://www.faa.gov/pilots/amelocator/
If you end up okay and qualified to attend flight training, just let us know so we can assist you further.
Thank you for using our forum!