Rock n play for sleeping

I am reading mixed things on having my 4 week old sleeping in one of those through the night. Is it safe?