is this necessary ?

Is it normal that my baby girl has to cry every single night in order to fall asleep? She would be happy then all of a sudden starts crying on and off for two hours.