There is no definitive answer to this question as it depends on the individual and their personal definition of childishness. Generally speaking, unfriending someone can be seen as a form of communication that is not respectful or helpful.