This really depends on what is in the "diet
pills" that one is taking.
Some diet pills can contain thyroid hormones
that can cause weight loss in addition to unwanted and dangerous short term and long term side effects. It is essential that you find out what is in a diet pill, or any pill, before you decide to take it. It is best to consult a physician.
Answer assisted by Tim Markman, Medical Student