Hi Pato46, you are in the same situation as my fellow Brazilian friends. M.D. would be considered a doctorate, but in South America, you receive a bachelors in medicine, and it would only count as an undergraduate degree.
If your specialization diploma clearly states it is a doctorate then yes, otherwise IRCC (or rather ECA - entity which validates you degree and give it a Canadian equivalency) will not consider it a doctorate.
In fact, if your specialization diploma does not even mention it is a master's degree, ECA will just consider it as a "post-grad diploma", which will give you less points than a master's equivalency. Unfortunately, wording is very important, so check what is written in your diploma.