washing baby hair

Can you wash a month old babies hair? Will it effect their mole?