Unfortunately, no. The more someone tries to push away their intrusive thoughts, the stronger they will come back.
For example, what if I told you to NEVER think of PINK ELEPHANTS. Under no circumstances should you ever picture a PINK ELEPHANT. Now what are you thinking of?
The trick with these intrusive thoughts is to practice witnessing them without judgement, letting them flow by like a river or float by like a cloud. For me I had to do this with the help of a very good psychologist while inpatient, as my Pure O was particularly severe, but some can do it alone. If you are able to get a therapist that is experienced with intrusive thoughts I would highly recommend it.