i dont reccomend it
babies dont need pillows. my daughter does have a crib wedge because she cant sleep flat. pillows are fluffy or cushiony which could cause your baby to smother themselves. I think a pillow is dangerous until they are at least toddlers. I know pillows are comfy to us adults, but it is definitely a risk to a baby!
I think the key is to make sure that they're able to get it off their heads and so they don't get trapped..