If you mean in the sense of "I can't get this song out of my mind", then yes - in context.
"I heard this song on the tele last night and I can't get it out of my mind. I just can't get rid of it."
Anyone would understand it from the context but out of context I'm not sure that it's normal usage. For example, if you walked into a room and said:
"I can't get this song out of my head", everyone would understand you.
But if you walked into a room and said:
"I can't get rid of this song", I don't think people would necessarily understand you.