There is no rule saying no, but it is recommended to study abroad after recovery. The pressure of studying abroad is relatively high, and depression is easy to recur under high pressure. For the sake of patients' health, it is more suitable for China.
If you have close friends who are interested in studying abroad, you might as well go with them to relieve your pressure.
You can usually take medicine. If you don't take medicine, you can also seek medical help in the country where you study.