When is it safe/recommend baby sleep with a blanket?

Also does it matter what material it’s made of? What should I be looking for when buying?