Do you ever worry that you've accidentally plagiarized a song that (you think) you wrote?

I remember reading the Paul McCartney heard "Yesterday" in a dream and then spent months making sure he hadn't accidentally plagiarized it before he finally committed to it. I find myself obsessing over "is this too much like...?" Anybody else?