Does your baby have to sleep in the crib?

Daisy

I let my one month old sleep in her swing is that ok?