Not at all. I understand that drug testing is required due to contractual obligations and things like security clearances. However, I choose not to apply to such jobs because what I do on my own time doesn't need scrutiny from my employer. I've heard from colleagues of companies in the consumer app space sometimes requiring drug tests for their engineering and non-engineering roles, which is more of what I'm addressing. There just isn't need for that beyond an employer or HR department not liking the idea of someone smoking a joint on the weekends.
People who choose to allow their public online presence to be unprofessional are allowed to be scrutinized by those who care about those things. However, if your employer is hiring companies that use bots to friend your private profiles and mine content from them, that's an overstep in my opinion. Wanting a dossier on an applicant's likes, opinions and a sentiment analysis on their posts is kind of absurd in my opinion.