No it wasn't. The War on Drugs was an attempt to take disparate anti-drug efforts and combine them into a more coherent whole. It was no different from the War on Poverty.
Were there people attempting to use drug policy to attack other people they didn't like? I've no doubt. But that wasn't the purpose of the War on Drugs and it would never have come into existence if it were.