Baby pillow

My baby has flat head on one side my husband recently bought a dimple pillow for her to sleep with. Now I'm seeing that a baby isn't supposed to sleep with a pillow....it's small and firm. What's the issue with pillows and has anyone used a dimple pillow and baby was fine?