Is anyone else LO scalp doing this

Dazia

His scalp looked dry so I gave him a bath to get the dandruff out but it didn’t brush away he also started to cry I also use coconut oil to moisturize his hair/scalp could this be an allergic reaction