Do we need a bassinet?

How long do you actually use them for? They seem so expensive considering they could just sleep in the crib right? I’m a first time mom so please educate me!