neck pillow makes posture worse?

I bought a neck pillow for my bad neck posture and it is making it sore when i wake up and worse…