can newborns sleep overnight in a Moses basket?

c
My aunt is giving me one and I don't want to buy a bassinet if they can sleep overnight in that next to my bed