Yes! The best way to avoid ghost is to believe they don't exist at all. You only attract what you believe. Surprisingly, our mind works like a magnetic field. It will attractive what we think about and imagine all the time. Once we stay positive, any negative thought like that of us encountering a ghost won't be able to invade its field. According to the law of attraction, I was thought that like charges attract themselves while unlike charges repel themselves. To this end, you will only experience a ghost(attract) when the magnetic field of your mind is in that state. But when your mind is not dwelling on seeing a ghost(repel) there is no way you can ever encounter it. And so, the best and most effective ways to avoid encountering a ghost is to keep your mind off it.