Is it safe for baby to sleep in car seat?

The only way my 1month old baby stops crying and sleeps is if he's in his car seat is it okay to let him fall asleep in it for a bit then move him to a flat surface? He has colic and I finally got him to sleep in his car seat of course I won't let him sleep in it all night but just for a bit is it okay?