Is it ok to dye my hair?

Im around 4weeks is it ok to dye my hair? Could it harm the baby?