Yes, but neither a degree is needed to do that nor even the word “cognitive psychology”, as manipulation is as old as history itself and some people naturally have a sense of human psychology and how to work it.
To understand advertising, that is all BF Skinner. Personally, I am not a fan of behavioural psychology in the Skinner sense.
When it comes to things like online harassment and toxic engagement, the psychology is far more complex.
I created a five-year case study on internet harassment (primarily focusing on Media Wiki’s) and online misinformation, you can access this here if interested.