Do you think its okay to name a baby after a religion that they don't follow?

MK

Out of curiosity, what do you think about people naming their kids a name that is associated with a certain religion that they don't follow? A name after a Hindu god for example, or jewish or any other religion? Like for example naming a baby Muhammed or Khadija when the parents aren't muslim?