Dockatot safe in bassinet?

I see alot of moms put it in cribs and bassinets. Is it safe to use in there?