Yes, there can be no doubt that psychiatry has been--and continues to be--used for very dubious purposes, and that diagnosis is always inflected by the politics of its creators.
Psychiatry has been used for dubious purposes.